Q61. A subquery inside a subquery is called?
A subquery placed inside another subquery is called a **nested subquery** (or multi-level subquery): ```sql SELECT customer_name FROM customers WHERE customer_id IN ( SEL...
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 (118 available).
A subquery placed inside another subquery is called a **nested subquery** (or multi-level subquery): ```sql SELECT customer_name FROM customers WHERE customer_id IN ( SEL...
A **correlated subquery**. It executes once for each row of the outer query. ```sql SELECT * FROM employees e WHERE salary > (SELECT AVG(salary) FROM employees WHERE dept...
SQL's version of IF-THEN-ELSE. Two forms: simple and searched. ```sql -- Searched CASE (more flexible) SELECT name, CASE WHEN salary >= 100000 THEN 'Executive' WHEN salar...
DDL (CREATE, ALTER, DROP, TRUNCATE), DML (INSERT, UPDATE, DELETE, SELECT), DQL (SELECT — sometimes grouped with DML), DCL (GRANT, REVOKE), TCL (COMMIT, ROLLBACK, SAVEPOIN...
**DDL** stands for **Data Definition Language**. DDL statements define, alter, and destroy database schema structures (tables, indexes, views, schemas, constraints): ### ...
**DML** stands for **Data Manipulation Language**. DML commands manage, insert, retrieve, and modify actual data rows stored inside database tables: ### Core DML Statemen...
`GRANT` and `REVOKE` belong to **DCL (Data Control Language)**. ### Purpose of DCL: DCL commands manage user security privileges, access rights, and permissions across da...
Statements such as **`COMMIT`**, **`ROLLBACK`**, **`CREATE`**, **`ALTER`**, and **`DROP`** are **NOT** DML statements: - `COMMIT` and `ROLLBACK` are **TCL (Transaction Co...
The **`INSERT INTO`** statement is used to add new rows of data into a database table: ```sql INSERT INTO Customers (first_name, last_name, email) VALUES ('John', 'Doe', ...
No, if you provide values for ALL columns in the exact table order. But **best practice**: always specify columns. It prevents errors when schema changes and is self-docu...
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.