Q111. Are views updatable?
**Some views are updatable, but under strict structural criteria**: ### Conditions for a View to Be Updatable: 1. Must reference **only one base table** in the `FROM` cla...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (119 available).
**Some views are updatable, but under strict structural criteria**: ### Conditions for a View to Be Updatable: 1. Must reference **only one base table** in the `FROM` cla...
1. **Simplify complex queries** — hide JOINs and aggregations 2. **Security** — expose only specific columns/rows 3. **Logical independence** — shield apps from schema ch...
**Standard SQL views do NOT contain data**. - **Standard Views (Virtual)**: Contain only a stored SQL query definition in the data dictionary. Every query against the vie...
To delete a view from the database, use the **`DROP VIEW`** command: ```sql DROP VIEW IF EXISTS active_customer_summary; ``` Dropping a view removes only the stored query...
**Yes**, a view can be defined on top of another existing view (known as a **nested view**): ```sql CREATE VIEW us_customers AS SELECT * FROM Customers WHERE country = 'U...
To iterate row-by-row over a query result set inside a stored procedure, use a **`CURSOR`**: ### Cursor Lifecycle Steps: 1. **`DECLARE`**: Define the cursor and query. 2....
**Query optimization**. The database's query optimizer generates multiple execution plans and picks the cheapest one based on statistics, indexes, and cost models. You ca...
A stored procedure that automatically executes in response to a DML event (INSERT, UPDATE, DELETE) or DDL event (CREATE, ALTER, DROP). Components: **Event** (when), **Con...
A specialized database procedure that automatically executes in response to data modification events (`INSERT`, `UPDATE`, or `DELETE`) on a specific table is called a **T...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.