Databases & SQL
SQL and NoSQL databases from first query to design: PostgreSQL, MySQL, MongoDB and vector search for AI.
AiTeky Originals
Our own lessons in plain English. Run the code right here and check your answers as you go.
Interactive Learning & PracticeIntermediate
3 lessons · ▶ code runs in your browser
Managed databases in the cloud: recovery, replicas and choosing a plan
See how a snapshot plus a log of changes lets you recover a database to any minute, why a read replica can show out-of-date data right after you save, and choose a backup and failover plan from the loss and downtime a business can bear.
Interactive Learning & PracticeIntermediate
3 lessons · ▶ code runs in your browser
SQL: join fan-out, NULL traps and the revenue report that was too high
See why joining an order to its items repeats the order's amount, how NULL breaks comparisons and counts, and fix a revenue report that comes out far higher than the finance total.
Interactive Learning & PracticeIntermediate
3 lessons · ▶ code runs in your browser
SQL at work
Questions inside questions with subqueries, NOT EXISTS and chained CTEs; why databases are normalised and why reports use a star schema; and the timed SQL problems interviewers set, solved on a real grocery-app database.
Interactive Learning & PracticeIntermediate
2 lessons · ▶ code runs in your browser
Warehouse SQL: windows, nested rows and bytes scanned
Write the SQL that free warehouse SQL certificates test, from grouping with HAVING and date parts to common table expressions, joins and unions, running totals with window functions, and unpacking nested and repeated fields, then keep each query cheap by checking how many bytes it will scan.
Beginner
Start here. No background needed beyond school maths.

