SQL Interview Questions Quizzes

Practise the SQL questions interviewers love, from second highest salary and top N per group to NULL traps, output prediction, performance and buggy queries.

All levels 5 quizzes · 50 questions about 36 minutes
0/5passed Category exam 20 mixed questions. 80% earns a certificate.
Tags:
1 Classic SQL Interview Queries Hard Solve the queries every SQL interview asks, like second highest salary, duplicates and top N per group. #interview#queries 10 questions · ~8 min Not started Start
2 SQL Output Prediction Medium Read short SQL queries and predict their exact output, including the classic interview traps. #output-prediction#gotchas 10 questions · ~6 min Not started Start
3 Tricky NULL Questions Hard Master the NULL traps interviewers love, from NOT IN and three-valued logic to aggregates and sorting. #null#gotchas 10 questions · ~8 min Not started Start
4 Query Performance Medium Recognise slow query patterns and the rewrites that fix them, from N+1 queries to deep OFFSET pagination. #performance#indexes 10 questions · ~6 min Not started Start
5 SQL: Find the Bug Hard Daily · 2x XP Find the bugs in queries that run without errors but return the wrong answer, and in ones that do not run at all. #debugging#interview 10 questions · ~8 min Not started Start