iGET

Database (DBMS) - MCQ Practice Questions

DBMS & SQL MCQs — normalization, joins, transactions & indexing.

57 questions | 100% Free

Q.1Hard

Consider a table with columns: id, name, salary. If a row has NULL salary, what will SELECT * FROM table WHERE salary = NULL return?

Q.2Hard

What will be the output of: SELECT MAX(salary) FROM employees GROUP BY department;

Q.3Hard

What is the difference between UNION and UNION ALL in SQL?

Q.4Hard

Which of the following is the correct order of SQL clause execution?

Q.5Hard

What will be the result of: SELECT COUNT(DISTINCT department) FROM employees WHERE salary > 50000;?

Q.6Hard

For optimizing a query with multiple JOINs and subqueries, which approach is most effective for 2024 databases?

Q.7Hard

Which scenario requires using PARTITION BY in window functions instead of GROUP BY?

Q.8Hard

A table has 1M rows. Query A uses WHERE on non-indexed column, Query B uses indexed column in WHERE. Expected performance difference?

Q.9Hard

In concurrent transaction scenarios, which isolation level allows dirty reads?

Q.10Hard

For a student result database, to calculate cumulative marks from beginning of year, which window function is appropriate?

Q.11Hard

For optimizing a complex query joining 5 tables with WHERE conditions, what is the recommended approach?

Q.12Hard

In a manufacturing database, to find products with sales in ALL regions, which approach is correct?