Write a SQL query to find the top 10% of customers by transaction volume over the last quarter at HDFC Bank.
Use the customers and transactions tables. Treat transaction volume as the count of posted transactions during the last completed calendar quarter. Exclude customers with no qualifying transactions.
customer_id, customer_name, transaction_volume, and customer_rank.customer_rank, then customer_id.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique HDFC Bank customer identifier |
| customer_name | VARCHAR(100) | Customer's registered name |
| Column | Type | Description |
|---|---|---|
| transaction_idPK | INT | Unique transaction identifier |
| customer_id | INT | Customer associated with the transaction |
| transaction_date | DATE | Date on which the transaction was recorded |
| transaction_status | VARCHAR(20) | Processing status of the transaction |