SQL: find the store with the highest average order value (AOV).
Asked in the Technical stage. The candidate's short label on AmbitionBox was “SQL: find store with highest AOV.” Use the stores and orders tables.
store_id, store_name, and average_order_value.store_id ascending.| Column | Type | Description |
|---|---|---|
| store_idPK | INT | Unique identifier for the store |
| store_name | VARCHAR(100) | Display name of the store |
| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique identifier for the order |
| store_id | INT | Store associated with the order |
| order_value | DECIMAL(10,2) | Monetary value of the order |