SQL & DatabasesNot Started
SQL JOINs
Combine data from multiple tables with INNER, LEFT, RIGHT joins
0%
Knowledge0%
Learn & DrillFluency0%
Drill & SpeedRetention0%
Mastery & ReviewConfidence0%
All modesFree tier: read the explanation here. Upgrade to Pro for Drills, Speed challenges & Mastery badges.
UpgradeKnowledge
Fluency
Retention
Knowledge Debt detected
You can study this freely — but your score may plateau if these foundations have gaps. The Mastery badge requires them to be solid.
Explanation
JOINs combine rows from multiple tables based on a related column.
sql
SELECT users.name, orders.total
FROM users
INNER JOIN orders ON users.id = orders.user_id;Types:
- INNER JOIN — only rows with matches in BOTH tables
- LEFT JOIN — all rows from left table + matching from right (NULLs for no match)
- RIGHT JOIN — all rows from right + matching from left
- FULL OUTER JOIN — all rows from both tables
LEFT JOIN is the most commonly used because it keeps all records from your main table even when related data is missing.
How well did you understand this?
Next in SQL & Databases
Aggregate Functions