18 real Views & Programmability questions from the SQL bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.
1. What is view?
Junior
A.a server-side control structure that fetches query results one row (or batch) at a time for procedural iteration
B.a routine the database fires automatically before or after an insert, update, or delete event on a table
C.a named stored query that behaves like a virtual table and re-runs its definition each time it is referenced, storing no data itself
D.a callable routine that takes arguments and returns a value or table, usable directly inside SELECT expressions
2. Which term means: "a named stored query that behaves like a virtual table and re-runs its definition each time it is referenced, storing no data itself"?
5. Which term means: "a view whose query result is physically stored on disk for fast reads and must be explicitly refreshed to reflect underlying data changes"?
A.materialized view — a callable routine that takes arguments and returns a value or table, usable directly inside SELECT expressions
B.materialized view — a server-side control structure that fetches query results one row (or batch) at a time for procedural iteration
C.materialized view — a view whose query result is physically stored on disk for fast reads and must be explicitly refreshed to reflect underlying data changes
D.materialized view — a precompiled named routine of SQL statements invoked with CALL that can perform actions and manage transactions but need not return a value
8. Which term means: "a precompiled named routine of SQL statements invoked with CALL that can perform actions and manage transactions but need not return a value"?
A.stored procedure — a precompiled named routine of SQL statements invoked with CALL that can perform actions and manage transactions but need not return a value
B.stored procedure — a named stored query that behaves like a virtual table and re-runs its definition each time it is referenced, storing no data itself
C.stored procedure — a routine the database fires automatically before or after an insert, update, or delete event on a table
D.stored procedure — a server-side control structure that fetches query results one row (or batch) at a time for procedural iteration
A.user-defined function — a callable routine that takes arguments and returns a value or table, usable directly inside SELECT expressions
B.user-defined function — a precompiled named routine of SQL statements invoked with CALL that can perform actions and manage transactions but need not return a value
C.user-defined function — a server-side control structure that fetches query results one row (or batch) at a time for procedural iteration
D.user-defined function — a view whose query result is physically stored on disk for fast reads and must be explicitly refreshed to reflect underlying data changes
Answers, AI explanations, and a scored voice mock interview
Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.