← SQL Analyst Starter

Lesson 3 of 4

Join and keep unmatched orders

Use a left join for a complete order list.

Do the work

  1. Join orders.customer_id to customers.customer_id.
  2. LEFT JOIN keeps unmatched and NULL-key orders.
  3. A missing name remains SQL NULL, not an empty string.

See the method

Orders are the left table.

Practice independently

Take it further

Joining by email would duplicate customers sharing an email.