How to practice SQL online for free
A practical guide to learning SQL by writing queries: what a good practice setup needs, a 20-minute routine, and three queries you can run right now.
Short, friendly articles about the SQL ideas behind the path.
A practical guide to learning SQL by writing queries: what a good practice setup needs, a 20-minute routine, and three queries you can run right now.
Three join exercises worked end to end — tracks and albums, employees who manage nobody, and a three-table join — with the SQL and the reasoning.
Eight SQL interview questions beginners actually get asked, with short answers and runnable examples on the SQLazo record store.
The three ranking functions look identical until there is a tie. See the difference in one query, then use PARTITION BY to rank inside each group.
Both express the same idea. Use a subquery for one quick lookup, a CTE when the result has a name or is needed twice — with examples from the course.
WHERE filters rows, HAVING filters groups. One query at a time, here is the execution order and the mistakes it prevents.
NULL is unknown, not zero. Why `= NULL` returns nothing, how COUNT(column) skips NULLs, and when COALESCE and NOT IN surprise you.
Dates as text versus real date types: a side-by-side of strftime, julianday, date_trunc and intervals, with examples that run on the course database.
Why tables rarely live alone, and how INNER JOIN and LEFT JOIN turn them into one. With examples from the SQLazo record store.
What really happens when SQL groups rows: counting, summing and the difference between WHERE and HAVING.
Rankings, running totals and rows that see other rows — the window functions superpower, explained without the jargon.
Meet the tables behind every SQLazo exercise: artists, albums, tracks, customers and the invoices that tie them together.