2026.11.17 · 7 LESSONS · Software engineering
SQL Interview Sprint
Pass a SQL coding screen: solve LeetCode-style MySQL problems fast, alone, and explain why they work.
- ✓ Filter
- Join + group
- Windows
- Subqueries + CTEs
- Interview-ready
- 01Filtering rows with WHERE (FROM → WHERE → SELECT, AND/OR)predict which rows survive WHERE with AND/OR, and say the run order→
- 02Comparisons, OR and parentheses (+ OR vs UNION)filter numbers with >= / >, add parentheses when mixing AND and OR, and explain OR vs UNION→
- 03Odd numbers, NULL and ORDER BYfilter odd/even with %, predict what WHERE does with NULL, and sort with ORDER BY DESC→
- 04GROUP BY and COUNT(DISTINCT)group rows into buckets, pick COUNT(*) vs COUNT(col) vs COUNT(DISTINCT), and explain the one-value-per-bucket rule→
- 05INNER JOIN vs LEFT JOINpredict which rows INNER and LEFT JOIN keep, where NULLs appear, and which table goes on the left→
- 06Finding rows with no partner (LEFT JOIN + IS NULL)find unmatched rows with LEFT JOIN + WHERE key IS NULL, count them per group, and explain ON vs WHERE→
- 071581 step by step: LEFT JOIN + IS NULL, NOT EXISTS, and two trapsbuild an anti-join + count query clause by clause, write it with NOT EXISTS, and spot the NOT IN and non-key IS NULL traps→