SQL Practice on a Real Database
The fastest way to get good at SQL is writing real queries against real data. These are real SQL problems in a live cloud workspace - aggregations, window functions, a slow report to speed up, a wrong join to fix - not multiple-choice flashcards.
Get started - freeLive cloud workspace in your browser · nothing to install
Why a real database beats drills
Drills teach syntax; a real database teaches judgment - which join, why a query is slow, how to read an EXPLAIN. That judgment is what interviews and the job actually test.
18 challenges to practice
Add a NOT NULL Column With a Zero-Downtime BackfillBackend · SeniorRoute Reads to a Postgres ReplicaBackend · SeniorBuild a Kimball Star SchemaData · SeniorBackfill a Column Safely (Batched + Verified)Data · SeniorHandle Late-Arriving Data in an Incremental LoadData · SeniorBuild an Event-Sourced Projection (CQRS)Data · SeniorReplace LIKE Search With Postgres Full-Text SearchFullstack · SeniorPlug a Postgres Connection Pool LeakBackend · MidFix the N+1 QueryBackend · MidStop a Double-Charge Race ConditionBackend · MidFix a Pipeline Silently Dropping RecordsData · MidOptimize Batch Insert Throughput (COPY)Data · MidBuild a Staging-to-Marts dbt ProjectData · MidImplement SCD2 With dbt SnapshotsData · MidChoose the Right Postgres Join AlgorithmData · MidImplement the Outbox Pattern (At-Least-Once)Data · MidDebug a DuckDB Join That Multiplies RowsData · MidPlug a Postgres Connection Pool LeakDevOps · Mid
What to practice
Start with joins and aggregation, then window functions and query tuning - the parts that separate beginners from people who can own a database. Each one here is on real data.
Do real production work, free. Live cloud workspaces in your browser - every project you complete lands on your portfolio.
Get started - free