How do you explain the difference between an inner join and an outer join in a database context?
Write a PostgreSQL query that demonstrates the distinction by returning matched and unmatched records from the provided customer and order data.
customer_id, customer_name, order_customer_id, order_id, and match_status.order_id.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique 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 |