Most cheat sheets list syntax. Yours forgets it by next Tuesday. This one links every clause to a real challenge — so you don't just read SQL, you run it. SELECT through window functions, all in one page.
Print-friendly · Bookmark the section anchors · Cmd+F to search
SQL is written in one order and executed in another. Every "unknown column" error and every "why doesn't my window function work in WHERE" question traces back to this:
JOINs are where most beginners freeze on the job. Learn all six types and the difference between filtering in WHERE versus ON.
Asked in roughly 80% of mid-to-senior data interviews. Drill them until you can choose between RANK, DENSE_RANK, and ROW_NUMBER without thinking.
Syntax varies by dialect. SQLite uses strftime; Postgres uses EXTRACT and DATE_TRUNC; MySQL uses YEAR(), MONTH(). SQL Quest runs SQLite — challenge hints call out dialect differences.
Things that work but mark you as a beginner in code review. Avoid them once you can.
200+ challenges, AI Coach by Claude, 7-day Pro trial. First query in under 60 seconds.
Open SQL Quest — Free ⚡Browser-only · No install · No card