Answer three intermediate SQL questions.
Write PostgreSQL queries for the three requirements below using the provided tables. Treat only orders with status = 'completed' as completed transactions. Preserve customers with no completed orders where requested.
| 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_date | DATE | Date the order was placed |
| status | VARCHAR(20) | Order status |
| amount | DECIMAL(10,2) | Order amount |