Sam Whitby Coding
5 minutes
An INNER JOIN keeps only rows that matched on both sides; a LEFT JOIN keeps every row of the left table and fills the right-hand columns with NULL when nothing matched; RIGHT is the mirror and FULL keeps unmatched rows from both. That promise is a contract the engine must honour, and it limits which join algorithms and which join orders are legal. So an outer join genuinely gives the optimizer less freedom than an inner join does.