University of Kansas Medical Center reporting needs a summary of transaction volume by category. Write a PostgreSQL query that identifies the five categories with the most completed transactions during calendar year 2024.
status = 'Completed' and a transaction_date in 2024.| Column | Type | Description |
|---|---|---|
| category_idPK | INT | Primary key for the category |
| category_name | VARCHAR(100) | KUMC transaction category name |
| is_active | BOOLEAN | Whether the category is currently active |
| Column | Type | Description |
|---|---|---|
| transaction_idPK | INT | Primary key for the transaction |
| category_id | INT | Assigned transaction category |
| status | VARCHAR(20) | Transaction processing status |
| transaction_date | DATE | Date the transaction was recorded |
| amount | DECIMAL(12,2) | Illustrative transaction amount |