Quiz centre
SQL quiz
SQL questions on the behaviour that trips people up in interviews and in production: NULL logic, join fan-out, window frames, grouping and sargable filters. Most "what does this return" answers were checked by running the query.
- 30 questions
- 11 topics
- 3 beginner · 23 intermediate · 4 advanced
- Free, no sign-up
Loading 30 questions…
What is covered
Topics
Question types: single choice, multiple answers, sql interpretation.
- Window functions6 questions
- Aggregation5 questions
- NULLs5 questions
- Joins4 questions
- Performance3 questions
- Set operations2 questions
- DML1 question
- Hierarchies1 question
- Ordering1 question
- Subqueries1 question
- Types1 question
Study first
Related material
How the quizzes work
- Practice mode shows the answer and explanation straight after each question.
- Timed mode gives you about the time each question needs and shows answers only when you submit.
- Shuffled. Questions and options are in a new order each time, so you learn the idea, not the position.
- Saved in this browser: unfinished quizzes, your history, bookmarked questions and the ones you got wrong. No account needed.
- Original questions. Written by MiTechShots; code and SQL outputs were checked by running them.