RANIARANIA Academy

Joins & Relationships

Learn to combine data across tables in PostgreSQL with confidence — INNER, LEFT, RIGHT and FULL joins, self and cross joins, and the relationships behind them. You will model one-to-many and many-to-many data, write correct multi-table queries, and avoid the accidental Cartesian products that silently corrupt results.

Watch the free preview

What a join is — reassembling data with INNER JOIN — free to watch, no account needed.

PostgreSQL BEGINNER · 150 min · Certificate on completion · 3 CPD points

What you'll learn

  • Combine data across multiple tables using the full family of SQL joins
  • Choose correctly between INNER, LEFT, RIGHT and FULL joins for a given question
  • Model one-to-many and many-to-many relationships with foreign keys and junction tables
  • Write self joins and cross joins for hierarchies and combinations
  • Diagnose and prevent accidental Cartesian products that inflate result sets

Syllabus

Foundations of Joining Tables
What a join is — reassembling data with INNER JOINFree preview15 min
Join conditions, aliases and joining several tables15 min
Outer Joins — Keeping Unmatched Rows
LEFT JOIN and finding what is missing15 min
RIGHT and FULL OUTER joins15 min
Modelling Relationships Between Tables
One-to-many relationships and aggregating across joins15 min
Many-to-many relationships with junction tables15 min
Advanced Joins and Avoiding Pitfalls
Self joins and cross joins15 min
Avoiding accidental Cartesian products15 min
Lab — 10 Exercises & Solutions
Exercises 1–515 min
Exercises 6–1015 min