What is a left join in SQL?
Write a PostgreSQL query that demonstrates the behavior of a left join by combining customers with their orders. The result must retain customers that do not have a matching order and show NULL order fields for them.
customer_id, customer_name, order_id, order_amountcustomer_id ascending, then order_id ascending, with unmatched customers included| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer name |
| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique order identifier |
| customer_id | INT | Customer associated with the order |
| order_amount | DECIMAL(10,2) | Order amount |