From the SQL for Python Developers series. The examples use DuckDB and a practice database of customers and orders.
An INNER JOIN drops rows with no match; a LEFT JOIN keeps them
An INNER JOIN returns only rows that match in both tables; a LEFT JOIN returns every row from the left table and fills the right table's columns with NULL where nothing matches.