Write a query to find the top three performing store locations in a specific region based on total revenue.
Use the stores and sales tables, with Midwest as the region. Stores with a NULL region are ignored.
store_id, store_name, total_revenue, and revenue_rank.store_id.total_revenue descending, then store_id ascending.| Column | Type | Description |
|---|---|---|
| store_idPK | INTEGER | Unique store identifier |
| store_name | VARCHAR(100) | Store location name |
| region | VARCHAR(50) | Geographic region containing the store |
| Column | Type | Description |
|---|---|---|
| sale_idPK | INTEGER | Unique sale identifier |
| store_id | INTEGER | Store associated with the sale |
| sale_amount | NUMERIC(12,2) | Revenue recorded for the sale |