Beginner → Intermediate

SQL

Learn SQL from the ground up — querying, filtering, sorting, joining and grouping data, then creating and changing tables of your own.

92 lessons16 modulesFree to read

Course content

Module 1

Database Fundamentals

4 lessons
  1. Not startedWhat is a Database?Lesson
  2. Not startedRelational vs NoSQL DatabasesLesson
  3. Not startedWhat is SQL? Command TypesLesson
  4. Not startedSetup & Your Practice DatabaseLesson

Module 2

Data Types & Creating Tables

6 lessons
  1. Not startedNumeric Data TypesLesson
  2. Not startedText, Boolean & UUID TypesLesson
  3. Not startedDate & Time TypesLesson
  4. Not startedCREATE TABLE & Primary KeysLesson
  5. Not startedConstraints: Protecting Your DataLesson
  6. Not startedALTER, DROP & TRUNCATELesson

Module 3

Inserting, Updating & Deleting

5 lessons
  1. Not startedINSERT & RETURNINGLesson
  2. Not startedUPDATE: Changing Data SafelyLesson
  3. Not startedDELETE, TRUNCATE & Soft DeletesLesson
  4. Not startedUpsert: INSERT … ON CONFLICTLesson
  5. Not startedImporting & Exporting CSV (COPY)Lesson

Module 4

Querying with SELECT

7 lessons
  1. Not startedSELECT, Columns & AliasesLesson
  2. Not startedFiltering with WHERELesson
  3. Not startedAND, OR, NOT & PrecedenceLesson
  4. Not startedBETWEEN, IN, LIKE & ILIKELesson
  5. Not startedWorking with NULLLesson
  6. Not startedORDER BY, LIMIT & OFFSETLesson
  7. Not startedDISTINCT & the Order of ExecutionLesson

Module 5

Functions & Expressions

6 lessons
  1. Not startedString FunctionsLesson
  2. Not startedNumber Functions & MathLesson
  3. Not startedDate & Time FunctionsLesson
  4. Not startedCASE ExpressionsLesson
  5. Not startedCOALESCE, NULLIF & Type CastingLesson
  6. Not startedPattern Matching & Regular ExpressionsLesson

Module 6

Aggregation & Grouping

5 lessons
  1. Not startedAggregate FunctionsLesson
  2. Not startedGROUP BYLesson
  3. Not startedHAVING: Filtering GroupsLesson
  4. Not startedFILTER, STRING_AGG, ARRAY_AGG & JSON_AGGLesson
  5. Not startedROLLUP, CUBE & GROUPING SETSLesson

Module 7

Joins & Relationships

7 lessons
  1. Not startedRelationships, Primary & Foreign KeysLesson
  2. Not startedINNER JOINLesson
  3. Not startedLEFT & RIGHT JOINLesson
  4. Not startedFULL OUTER JOIN & CROSS JOINLesson
  5. Not startedSELF JOINLesson
  6. Not startedMulti-table Joins & ON vs WHERELesson
  7. Not startedFinding Missing Data: Anti-Joins & Semi-JoinsLesson

Module 8

Subqueries & CTEs

6 lessons
  1. Not startedSubqueries in WHERE, FROM & SELECTLesson
  2. Not startedCorrelated SubqueriesLesson
  3. Not startedEXISTS, IN, ANY/ALL & the NOT IN TrapLesson
  4. Not startedCommon Table Expressions (WITH)Lesson
  5. Not startedRecursive CTEs: Trees & HierarchiesLesson
  6. Not startedSet Operations: UNION, INTERSECT & EXCEPTLesson

Module 9

Window Functions

5 lessons
  1. Not startedWindow Functions: OVER & PARTITION BYLesson
  2. Not startedRanking: ROW_NUMBER, RANK & DENSE_RANKLesson
  3. Not startedLAG, LEAD, FIRST_VALUE & LAST_VALUELesson
  4. Not startedRunning Totals, Moving Averages & FramesLesson
  5. Not startedTop-N per Group & Window PatternsLesson

Module 10

Database Design

5 lessons
  1. Not startedER Diagrams & Modelling RelationshipsLesson
  2. Not startedChoosing Keys: Natural, Surrogate, UUIDLesson
  3. Not startedNormalization: 1NF, 2NF, 3NF & BCNFLesson
  4. Not startedDenormalization & Common Design PatternsLesson
  5. Not startedDesigning the BudgetBuddy SchemaLesson

Module 11

Indexes & Performance

6 lessons
  1. Not startedWhat is an Index?Lesson
  2. Not startedComposite, Unique, Partial & Expression IndexesLesson
  3. Not startedGIN, GiST, BRIN & Hash IndexesLesson
  4. Not startedEXPLAIN & EXPLAIN ANALYZELesson
  5. Not startedWriting Fast QueriesLesson
  6. Not startedPagination, VACUUM & ANALYZELesson

Module 12

Transactions & Concurrency

5 lessons
  1. Not startedTransactions: BEGIN, COMMIT & ROLLBACKLesson
  2. Not startedACID PropertiesLesson
  3. Not startedIsolation Levels & Concurrency AnomaliesLesson
  4. Not startedLocks, SELECT … FOR UPDATE & DeadlocksLesson
  5. Not startedOptimistic vs Pessimistic LockingLesson

Module 13

Advanced PostgreSQL

8 lessons
  1. Not startedViews & Materialized ViewsLesson
  2. Not startedFunctions: SQL & PL/pgSQLLesson
  3. Not startedStored Procedures & DO BlocksLesson
  4. Not startedTriggersLesson
  5. Not startedJSON & JSONBLesson
  6. Not startedArrays, UNNEST & generate_seriesLesson
  7. Not startedFull-Text SearchLesson
  8. Not startedExtensions: pgcrypto, uuid, pg_trgm & MoreLesson

Module 14

Security & Supabase

6 lessons
  1. Not startedRoles, Users & PermissionsLesson
  2. Not startedSQL Injection & Parameterized QueriesLesson
  3. Not startedRow Level Security (RLS)Lesson
  4. Not startedUsing Supabase from Your AppLesson
  5. Not startedMigrations, Version Control & ORMsLesson
  6. Not startedBackups, Monitoring & Slow QueriesLesson

Module 15

Capstone Projects

6 lessons
  1. Not startedProject: BudgetBuddy Production DatabaseProject
  2. Not startedProject: E-commerce & Sales AnalyticsProject
  3. Not startedProject: Library Management SystemProject
  4. Not startedProject: School Management & ResultsProject
  5. Not startedProject: Answering Business Questions (Data Analysis)Project
  6. Not startedProject: Social App — Followers & FeedProject

Module 16

Interview Practice

5 lessons
  1. Not startedNth Highest Value (Overall & Per Group)Lesson
  2. Not startedFinding & Deleting DuplicatesLesson
  3. Not startedGaps & Islands: Streaks and Missing RangesLesson
  4. Not startedGrowth, Retention & Cohort AnalysisLesson
  5. Not startedPivots, Medians & Tricky Interview QuestionsLesson