Swiggy wants to identify its most frequent customers in a selected delivery region. Write a PostgreSQL query to return the top 10 customers by the number of delivered orders in Bengaluru.
customers with orders using customer_id.region is Bengaluru and whose order status is delivered.customer_id ascending to make ties deterministic.| Column | Type | Description |
|---|---|---|
| customer_idPK | INTEGER | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer's name |
| region | VARCHAR(50) | Customer's delivery region |
| Column | Type | Description |
|---|---|---|
| order_idPK | INTEGER | Unique order identifier |
| customer_id | INTEGER | Customer who placed the order |
| order_date | DATE | Date the order was placed |
| status | VARCHAR(20) | Current order status |