Concept Flow - Joins in SQL
Start with two tables
Choose Join Type
INNER JOIN
Match rows where keys are equal
Output matched rows
LEFT JOIN
All rows from left table
Match rows from right table or NULL
Output all left rows + matches
RIGHT JOIN
All rows from right table
Match rows from left table or NULL
Output all right rows + matches
FULL OUTER JOIN
All rows from both tables
Match rows or NULL where no match
Output all rows combined
Joins combine rows from two tables based on a related column, choosing which rows to keep depending on the join type.