I'm learning SQL in public, from my first SELECT to building a data warehouse. Every episode is one study session: a story, a hands-on lab, diagrams, a quiz, and a cat who sleeps through all of it.
the study room · open 24/7 · cat not included in the price
Same shape every time, so you always know where you are.
From your first SELECT to building your own tables. By the end you can answer real business questions on your own.
Why SQL exists: Codd, SEQUEL, the optimizer, and the language that refused to die.
no lab · history + quizInstall PostgreSQL + DBeaver, load a sample shop, and run SELECT, FROM and LIMIT.
lab: load the shop databaseWHERE, AND / OR, IN, BETWEEN, LIKE, ORDER BY, and the NULL trap.
lab: find the "lost" ordersINNER / LEFT / FULL JOIN, anti-joins, and stacking results with UNION, INTERSECT, EXCEPT.
lab: customers who never orderedString, number and date functions, CASE logic, COALESCE and clean NULL handling.
lab: clean a messy customer listCOUNT, SUM, AVG, GROUP BY, HAVING: turning rows into answers.
lab: revenue per countryDDL vs DML, data types, PRIMARY / FOREIGN KEY, transactions with COMMIT and ROLLBACK.
↳ my SQL2 noteslab: design a mini retail schemaStop guessing why a query is slow or wrong. Learn what the engine actually does, and the tools pros use every day.
Parser → optimizer → executor, execution order, and reading your first EXPLAIN.
↳ my SQL2 noteslab: EXPLAIN five queriesSubqueries, CTEs, WITH RECURSIVE, and temp tables.
lab: build an org chartKeep every row, still see the big picture: OVER, PARTITION BY, ORDER BY, frames and the 4 window rules.
↳ studied 16 Nov 2026lab: the three-level reportTotals that never forget the details: COUNT, SUM, AVG, MIN, MAX over windows, running and rolling totals.
↳ studied 17 Nov 2026lab: the data health checkWho's #1, and what happens on a tie? ROW_NUMBER, RANK, DENSE_RANK, NTILE, CUME_DIST, PERCENT_RANK.
lab: keep the latest, crown the bestCompare today with yesterday: LAG, LEAD, FIRST_VALUE and LAST_VALUE.
↳ my sql3 noteslab: the price detectiveViews, functions, stored procedures and triggers, and when not to use them.
↳ my SQL2 noteslab: an auto updated_at triggerB-tree, composite, partial and GIN indexes, why an index is ignored, EXPLAIN ANALYZE.
↳ my SQL_1 noteslab: the 145× index, extendedThe SQL that runs pipelines: modeling, safe loading, concurrency, big tables and the modern data stack.
Normalization vs star schema, fact and dimension tables, surrogate keys.
lab: model a fact_SalesLineTransactions, isolation levels, locks and MVCC.
lab: two terminals, one rowCOPY, upserts with ON CONFLICT, idempotent loads, SCD Type 2.
lab: a rerunnable daily loadExploratory data analysis, running totals, cohorts and segmentation in pure SQL.
lab: a customer report in one querydbt models and tests, SQL from Python, warehouse SQL in Microsoft Fabric.
lab: your first dbt projectRaw → staging → star schema → dashboard, end to end, on my home database server.
capstone projectHow one study session becomes one episode.
git push → live on datawithkim.dev via GitHub Pages.Prefer video? This free course covers most of the same ground and pairs well with the labs here.
// video · Data with BaraaSQL Full Course for Beginners (30 Hours): From Zero to Hero. Basics, joins, functions, window functions, CTEs, procedures, performance, EDA and a data warehouse project. Different database engine than mine in places, so expect small syntax differences.