SQL MCQ test
Check your SQL knowledge with a free online quiz. Each attempt picks 15 multiple-choice questions at random, from fresher to experienced level, and shows your score with the right answer and an explanation for every question.
15 random SQL questions · no time limit
A new mix every attempt. You see your score and every explanation at the end.
What this SQL test covers
- SELECT, WHERE, GROUP BY and HAVING
- INNER, LEFT and self joins, and duplicate rows
- NULL handling, CASE and aggregate functions
- Window functions: ROW_NUMBER, RANK, LAG and running totals
- Subqueries, CTEs and query performance
Want to read first? See all SQL interview questions and answers.