Explain the difference between a left join and an inner join in SQL.
Use a company's customer and order data to demonstrate the difference with query results. Show all customers and indicate whether an order match exists.
customer_id, customer_name, order_id, and match_status.customer_id, then order_id, with unmatched customers shown clearly.customer_id and order_id in ascending order.order_id NULL after customers with orders.match_status value matching order when an order exists and no matching order otherwise.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique Firstnet Global customer identifier |
| customer_name | VARCHAR(100) | Customer display name |
| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique order identifier |
| customer_id | INT | Customer associated with the order |
| order_status | VARCHAR(30) | Current order status |