FinEdge wants to identify its highest-volume users in each country based on transaction activity. Write a PostgreSQL query to return the top 3 users per country by total transaction volume.
users and transactions.amount.amount is NULL.country, then rank, then user_id.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique identifier for each user |
| user_name | VARCHAR(100) | User display name |
| country | VARCHAR(50) | Country associated with the user |
| signup_date | DATE | Date the user signed up |
| Column | Type | Description |
|---|---|---|
| transaction_idPK | INT | Unique identifier for each transaction |
| user_id | INT | User who made the transaction |
| amount | DECIMAL(10,2) | Transaction amount |
| transaction_date | DATE | Date of the transaction |