Your question is SQL for Sellers With Degraded Fulfillment. Start with the requirements and the three tables on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Whatnot Operations needs to identify top-performing sellers whose shipping fulfillment has worsened recently. Write a PostgreSQL query comparing the last 30 days with the preceding 30 days, using August 29, 2026 as the reporting date.
shipped_at is on or before promised_ship_date.| Column | Type | Description |
|---|---|---|
| seller_idPK | INT | Unique seller identifier |
| seller_name | VARCHAR(100) | Seller display name |
| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique order identifier |
| seller_id | INT | Seller who created the order |
| order_date | DATE | Date the order was placed |
| promised_ship_date | DATE | Required ship-by date |
| Column | Type | Description |
|---|---|---|
| shipment_idPK | INT | Unique shipment identifier |
| order_id | INT | Order associated with the shipment |
| shipped_at | DATE | Actual shipment date |