How to perform data analysis?
Using customers and orders, write a query that summarizes order activity during the first quarter of 2025. Include every customer, including customers without qualifying orders, and calculate completed-order metrics.
customer_id, customer_name, completed_order_count, completed_revenue, average_completed_order_value, and latest_order_date.completed.completed_revenue 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_date | DATE | Date the order was placed |
| status | VARCHAR(20) | Order processing status |
| amount | NUMERIC(10,2) | Order amount |