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, amountINNER JOIN and FULL OUTER JOIN as the exact join_type values.join_type descending, then user_id ascending with NULLs last, then order_id ascending with NULLs last.| 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 |