DBMS · SQL interview questions

54 real DBMS · SQL questions from the Computer Science Fundamentals 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 DDL?

Junior
  1. A.the SQL category for managing transactions with COMMIT, ROLLBACK and SAVEPOINT
  2. B.a clause that collapses rows sharing a value into summary groups for aggregation
  3. C.the SQL category for defining schema with commands like CREATE, ALTER and DROP
  4. D.a clause that filters individual rows before any grouping is applied
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.DDL — the SQL category for defining schema with commands like CREATE, ALTER and DROP
  2. B.DDL — a join returning only the rows that have matching values in both tables
  3. C.DDL — a join producing the Cartesian product of every row in one table with every row in another
  4. D.DDL — a join in which a table is joined to itself to relate its own rows
Reveal the answer + AI explanation — free account

4. What is DML?

Junior
  1. A.a join returning all rows from both tables, filling nulls where there is no match
  2. B.a join producing the Cartesian product of every row in one table with every row in another
  3. C.a subquery that references the outer query and re-executes for each outer row
  4. D.the SQL category for manipulating data with commands like INSERT, UPDATE and DELETE
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.DML — a stored named query that presents data as a virtual table without physically storing it
  2. B.DML — a join returning all rows from both tables, filling nulls where there is no match
  3. C.DML — the SQL category for managing transactions with COMMIT, ROLLBACK and SAVEPOINT
  4. D.DML — the SQL category for manipulating data with commands like INSERT, UPDATE and DELETE
Reveal the answer + AI explanation — free account

7. What is DCL?

Mid
  1. A.a join returning only the rows that have matching values in both tables
  2. B.a set operator combining two query results while keeping all duplicate rows
  3. C.a fast DDL operation that removes all rows of a table without logging each row deletion
  4. D.the SQL category for access control with GRANT and REVOKE commands
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.DCL — the SQL category for access control with GRANT and REVOKE commands
  2. B.DCL — a clause that collapses rows sharing a value into summary groups for aggregation
  3. C.DCL — a set operator combining two query results and removing duplicate rows
  4. D.DCL — a fast DDL operation that removes all rows of a table without logging each row deletion
Reveal the answer + AI explanation — free account

10. What is TCL?

Mid
  1. A.a join returning all rows of the left table plus matching right rows, nulls where none match
  2. B.the SQL category for managing transactions with COMMIT, ROLLBACK and SAVEPOINT
  3. C.a clause that filters groups after aggregation, unlike WHERE which filters rows
  4. D.a subquery that references the outer query and re-executes for each outer row
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.TCL — the SQL category for managing transactions with COMMIT, ROLLBACK and SAVEPOINT
  2. B.TCL — the SQL category for access control with GRANT and REVOKE commands
  3. C.TCL — a join producing the Cartesian product of every row in one table with every row in another
  4. D.TCL — a fast DDL operation that removes all rows of a table without logging each row deletion
Reveal the answer + AI explanation — free account

13. What is Inner join?

Junior
  1. A.a join returning only the rows that have matching values in both tables
  2. B.a join producing the Cartesian product of every row in one table with every row in another
  3. C.a set operator combining two query results and removing duplicate rows
  4. D.the SQL category for managing transactions with COMMIT, ROLLBACK and SAVEPOINT
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Junior
  1. A.Inner join — a join returning all rows of the left table plus matching right rows, nulls where none match
  2. B.Inner join — a DML operation that removes selected rows and can be rolled back
  3. C.Inner join — the SQL category for defining schema with commands like CREATE, ALTER and DROP
  4. D.Inner join — a join returning only the rows that have matching values in both tables
Reveal the answer + AI explanation — free account

16. What is Left outer join?

Mid
  1. A.a set operator combining two query results and removing duplicate rows
  2. B.the SQL category for defining schema with commands like CREATE, ALTER and DROP
  3. C.a join returning all rows of the left table plus matching right rows, nulls where none match
  4. D.a clause that filters groups after aggregation, unlike WHERE which filters rows
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Mid
  1. A.Left outer join — a clause that filters groups after aggregation, unlike WHERE which filters rows
  2. B.Left outer join — a join producing the Cartesian product of every row in one table with every row in another
  3. C.Left outer join — a set operator combining two query results while keeping all duplicate rows
  4. D.Left outer join — a join returning all rows of the left table plus matching right rows, nulls where none match
Reveal the answer + AI explanation — free account

19. What is Full outer join?

Mid
  1. A.a join returning all rows from both tables, filling nulls where there is no match
  2. B.a stored named query that presents data as a virtual table without physically storing it
  3. C.a join returning only the rows that have matching values in both tables
  4. D.the SQL category for access control with GRANT and REVOKE commands
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Mid
  1. A.Full outer join — a set operator combining two query results while keeping all duplicate rows
  2. B.Full outer join — a join returning all rows of the left table plus matching right rows, nulls where none match
  3. C.Full outer join — a clause that filters groups after aggregation, unlike WHERE which filters rows
  4. D.Full outer join — a join returning all rows from both tables, filling nulls where there is no match
Reveal the answer + AI explanation — free account

22. What is Cross join?

Mid
  1. A.a clause that collapses rows sharing a value into summary groups for aggregation
  2. B.a subquery that references the outer query and re-executes for each outer row
  3. C.a set operator combining two query results and removing duplicate rows
  4. D.a join producing the Cartesian product of every row in one table with every row in another
Reveal the answer + AI explanation — free account

24. Which statement is correct?

Mid
  1. A.Cross join — a clause that filters groups after aggregation, unlike WHERE which filters rows
  2. B.Cross join — a subquery that references the outer query and re-executes for each outer row
  3. C.Cross join — a join producing the Cartesian product of every row in one table with every row in another
  4. D.Cross join — the SQL category for defining schema with commands like CREATE, ALTER and DROP
Reveal the answer + AI explanation — free account

25. What is Self join?

Mid
  1. A.a stored named query that presents data as a virtual table without physically storing it
  2. B.a join in which a table is joined to itself to relate its own rows
  3. C.a set operator combining two query results and removing duplicate rows
  4. D.a clause that filters groups after aggregation, unlike WHERE which filters rows
Reveal the answer + AI explanation — free account

27. Which statement is correct?

Mid
  1. A.Self join — a join in which a table is joined to itself to relate its own rows
  2. B.Self join — a join returning all rows from both tables, filling nulls where there is no match
  3. C.Self join — a clause that filters groups after aggregation, unlike WHERE which filters rows
  4. D.Self join — the SQL category for access control with GRANT and REVOKE commands
Reveal the answer + AI explanation — free account

28. What is WHERE clause?

Junior
  1. A.a join in which a table is joined to itself to relate its own rows
  2. B.a clause that filters individual rows before any grouping is applied
  3. C.a clause that collapses rows sharing a value into summary groups for aggregation
  4. D.a set operator combining two query results while keeping all duplicate rows
Reveal the answer + AI explanation — free account

30. Which statement is correct?

Junior
  1. A.WHERE clause — a join in which a table is joined to itself to relate its own rows
  2. B.WHERE clause — a clause that filters individual rows before any grouping is applied
  3. C.WHERE clause — the SQL category for managing transactions with COMMIT, ROLLBACK and SAVEPOINT
  4. D.WHERE clause — the SQL category for manipulating data with commands like INSERT, UPDATE and DELETE
Reveal the answer + AI explanation — free account

Showing 30 of 54 DBMS · SQL questions — the full set, with answers, explanations and an AI tutor on every question, is inside.

Free to start

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.

Practice DBMS · SQL free