How much experience do you have writing SQL scripts on the job?
To demonstrate, write a PostgreSQL query using customers and orders that summarizes qualifying orders placed during 2025. Include customers with no qualifying orders.
customer_name, completed_order_count, total_completed_amount, and order_category.COMPLETED and a 2025 order date.total_completed_amount descending, then customer_id ascending.| 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(20) | Order processing status |
| order_date | DATE | Date the order was placed |
| order_amount | NUMERIC(10,2) | Order amount |