Rate yourself on SQL and explain how you would handle basic SQL questions and basic guesstimates.
For the hands-on portion, write a PostgreSQL query using the provided customer and order data.
customer_id, customer_name, completed_order_count, completed_spend, and spend_band.completed_spend descending, then customer_id ascending.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer display name |
| segment | VARCHAR(30) | Customer segment |
| 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 lifecycle status |
| amount | NUMERIC(10,2) | Order amount |