How does an INNER JOIN differ from a LEFT JOIN in SQL?
- INNER JOIN: Returns only the rows that have matching values in both tables.
- LEFT JOIN (or LEFT OUTER JOIN): Returns all rows from the left table and the
matching rows from the right table. If no match is found, NULLs are returned for
columns from the right table.