HomeInterview QuestionsWhen is a non-materialized view evaluated in a que…

When is a non-materialized view evaluated in a query?

🟢 Easy Conceptual Junior level
1Times asked
Jul 2026Last seen
Jul 2026First seen

💡 Model Answer

A non-materialized view is simply a stored query definition. It is not precomputed or stored as data. When a query references the view, the database engine expands the view definition into the main query and executes the resulting SQL at runtime. The evaluation occurs after the optimizer has processed the query, ensuring that the view reflects the current state of its underlying tables. This guarantees up‑to‑date results but can add overhead if the view’s logic is complex.

This answer was generated by AI for study purposes. Use it as a starting point — personalize it with your own experience.

🎤 Get questions like this answered in real-time

Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers on a discreet on-screen overlay.

Get Assisting AI — Starts at ₹500