First Republic wants to identify its highest-volume clients based on transactions from the previous completed calendar quarter. Write a SQL query that calculates each client's transaction volume and returns the top 10% of clients.
client_id, client_name, and transaction_volumeDATE '2026-06-15'; ignore transactions with NULL amounts when summingtransaction_volume descending, then client_id ascending| Column | Type | Description |
|---|---|---|
| client_idPK | INT | Unique First Republic client identifier |
| client_name | VARCHAR(100) | Client's full name |
| client_code | VARCHAR(20) | Internal client reference code |
| relationship_manager | VARCHAR(100) | Assigned relationship manager |
| Column | Type | Description |
|---|---|---|
| transaction_idPK | INT | Unique transaction identifier |
| client_id | INT | Client associated with the transaction |
| transaction_date | DATE | Settlement date of the transaction |
| amount | NUMERIC(14,2) | Transaction amount in US dollars |
| transaction_type | VARCHAR(30) | Transaction classification |