Coding questions on SQL, AI, cloud, and networks.
For the SQL portion, use the provided customer, order, order item, and product data. Return active customers with completed revenue during the first quarter of 2025, including monthly revenue, month-over-month increases, and their regional revenue rank.
customer_name, region, q1_revenue, january_revenue, february_revenue, march_revenue, growth_months, and regional_rank.region, regional_rank, and customer_name.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer display name |
| region | VARCHAR(50) | Customer region |
| signup_date | DATE | Customer signup date |
| status | VARCHAR(20) | Customer account status |
| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique order identifier |
| customer_id | INT | Customer who placed the order |
| order_date | DATE | Date the order was placed |
| status | VARCHAR(20) | Order processing status |
| Column | Type | Description |
|---|---|---|
| order_item_idPK | INT | Unique order item identifier |
| order_id | INT | Referenced order |
| product_id | INT | Referenced product |
| quantity | INT | Units ordered |
| unit_price | NUMERIC(10,2) | Price per unit at order time |
| Column | Type | Description |
|---|---|---|
| product_idPK | INT | Unique product identifier |
| product_name | VARCHAR(100) | Product name |
| category | VARCHAR(50) | Product category |