iGET

Database (DBMS) - MCQ Practice Questions

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

57 questions | 100% Free

Q.1Easy

Which SQL command is used to retrieve data from a database?

Q.2Easy

What does the WHERE clause do in SQL?

Q.3Easy

Which keyword is used to eliminate duplicate rows in SQL results?

Q.4Easy

What is the correct syntax for inserting data into a table?

Q.5Easy

Which SQL aggregate function returns the total sum of a numeric column?

Q.6Medium

What is the purpose of the JOIN clause in SQL?

Q.7Medium

Which type of JOIN returns only matching rows from both tables?

Q.8Easy

What will be the output of: SELECT COUNT(*) FROM employees;

Q.9Medium

Which SQL clause is used to sort the result set in ascending or descending order?

Q.10Medium

What is the difference between WHERE and HAVING clauses?

Q.11Easy

Which statement is used to modify existing data in a table?

Q.12Medium

What will be the result of this query: SELECT * FROM employees WHERE salary > 50000 AND department = 'IT';

Q.13Medium

Which SQL function is used to count non-NULL values in a column?

Q.14Medium

What does the PRIMARY KEY constraint ensure?

Q.15Medium

Which of the following SQL wildcards matches any single character?

Q.16Hard

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

Q.17Hard

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

Q.18Medium

Which SQL statement is used to delete all records from a table without removing the table structure?

Q.19Hard

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

Q.20Hard

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