beginnerViews — Simple View & Materialized View

What's the fundamental difference between a simple view and a materialized view?

A simple view stores only the query text — every access re-runs the underlying query against current data, so it's always fresh but pays the full query cost every time. A materialized view physically stores the query's result set on disk like a table — fast to read, but only as fresh as its last REFRESH.

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

Continue to Why does REFRESH MATERIALIZED VIEW block concurrent readers, and how do you avoid that?← Back to all SQL questions