Explain the difference between inner join and outer join in SQL.
Use the provided users and orders tables to demonstrate the difference with matching and unmatched records. Show the results from both join types in one result set.
join_type, user_id, user_name, order_id, amount| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique user identifier |
| user_name | VARCHAR(100) | User's display name |
| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique order identifier |
| customer_id | INT | User who placed the order |
| amount | NUMERIC(10,2) | Order amount |