SQL
SQL Code Typing
33 SQL typing lessons in 5 modules: operator drills, JOINs and CTEs, window functions, 5 speed runs, and 4 assessment simulations.
- 33 lessons
- About 2.8 hrs
- 5 parts
- 4 full simulations
- $9
What's in this course
5 parts, 33 lessons. Each lesson takes a few minutes.
- 1Operators & SymbolsSQL punctuation and comparison operatorsUp next23 wordsFree
- 2Quoting & CastsDouble-quoted identifiers, string literals, and :: casts7 linesFree
- 3Comparison & MatchingBETWEEN, IN, LIKE, ILIKE, and IS DISTINCT FROM8 linesFree
- JSONB OperatorsThe -> ->> #>> @> family7 lines
Free preview ends here
The other 26 lessons and 4 full simulations are in SQL Code Typing: $9, one time, lifetime access.
- Arrays & Aggregated TextARRAY literals, ANY, unnest, and string_agg8 lines
- Placeholders & Null HandlingBound parameters with COALESCE, NULLIF, GREATEST8 lines
- Checkpoint: Symbol FluencyEvery SQL operator family from this module in one query15 lines
- KeywordsCore ANSI SQL reserved words3 lines
- DeclarationsTables, indexes, and views7 lines
- Join TypesINNER, LEFT, FULL OUTER, and LATERAL15 lines
- Upserts & Multi-Table WritesON CONFLICT, UPDATE FROM, and DELETE USING15 lines
- Idiomatic PatternsCommon SQL one-liners6 lines
- Grouping & FILTERHAVING, aggregate FILTER clauses, and DISTINCT ON13 lines
- Checkpoint: Keywords & IdiomsA CTE, a join, and a HAVING clause in one longer query20 lines
- Control FlowCASE expressions, filters, and joins12 lines
- Functions & MethodsAggregates and window functions10 lines
- CTE ChainsStacked WITH blocks that read top to bottom27 lines
- Window FunctionsROW_NUMBER, RANK, LAG, and running totals13 lines
- Subqueries & EXISTSCorrelated lookups without accidental cross joins18 lines
- Realistic SnippetMonthly revenue report with CTEs and window23 lines
- Transactions & LockingBEGIN/COMMIT, FOR UPDATE, and index maintenance13 lines
- Checkpoint: Real SnippetsA sensor summary joining CTEs, aggregates, and HAVING16 lines
- Speed Run: Daily Active UsersA rolling 30-day activity report typed without stopping18 lines
- Speed Run: Conversion FunnelBoolean aggregates rolled into a single funnel row18 lines
- Speed Run: Deduplicate RowsROW_NUMBER plus DELETE USING at full pace17 lines
- Speed Run: Gap-Free Time Seriesgenerate_series joined against sparse counts19 lines
- Speed Run: Bulk UpsertINSERT ... SELECT ... ON CONFLICT in one continuous run15 lines
- Checkpoint: Sustained SpeedA latency percentile report typed in one continuous run19 lines
- Assessment Sim 1: Cohort RetentionA customer cohort report joining three CTEs45 lines
- Assessment Sim 2: Typing Stats by LayoutA complete two-stage aggregation report31 lines
- Assessment Sim 3: Inventory LedgerSigned movements rolled into stock levels and status33 lines
- Assessment Sim 4: Layout LeaderboardPartitioned ranking with a display-name fallback33 lines
- Checkpoint: SQL Mastery FinalA ranked traffic report -- the course's graded final28 lines
About this course
For analysts, engineers, and anyone whose day involves writing SQL by hand. The course is 33 lessons across 5 modules: 7 symbol drills covering casts, JSONB arrows, arrays, and bound parameters; 7 keyword and idiom drills for joins, upserts, and grouping; 8 real snippets spanning CTE chains, window functions, correlated subqueries, and transactions; 5 sustained speed runs; and 4 assessment simulations -- complete reporting queries -- plus a graded mastery checkpoint. Every query is valid PostgreSQL and mirrors real reporting work.
