Write a query to identify the top 10 users based on transaction volume over the last quarter.
Use the users and transactions tables. Count every transaction row in the previous completed calendar quarter, excluding rows with a NULL transaction_timestamp or user_id.
user_id, user_name, and transaction_volumeuser_id ascending for ties| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique identifier for a Groww user |
| user_name | VARCHAR(100) | Display name of the user |
| Column | Type | Description |
|---|---|---|
| transaction_idPK | INT | Unique identifier for a transaction |
| user_id | INT | User associated with the transaction |
| transaction_timestamp | TIMESTAMP | Timestamp when the transaction was recorded |
| amount | NUMERIC(18,2) | Transaction amount in Indian rupees |
| status | VARCHAR(40) | Current transaction status |