Match rows across tables on a key; the join type decides which non-matches survive.
Stitch two tables together on a shared key. Inner keeps only matches; left keeps everything on the left and fills the gaps with NULL.
It's the highest-frequency interview topic in SQL, and the most common source of quietly wrong numbers.
A join stitches rows from two tables into one wider row, matched on a shared key — usually a primary key on one side and a foreign key on the other. INNER JOIN keeps only matched rows; LEFT, RIGHT, and FULL OUTER joins additionally keep unmatched rows from one or both sides, filling missing columns with NULL.
Joins combine tables on a join condition. INNER keeps rows that match on both sides. LEFT keeps every left row and NULL-fills where the right has no match; RIGHT and FULL extend that to the other side. Index the join columns so matching is a lookup, not a scan.
Inner Join, Left Join, Right Join and Full Outer Join in SQL Server | SQL Server Joins — Questpond, 8:11