Write a window function to rank transactions within each category and retrieve the top three highest values.
Use the transactions table. Ties should receive the same rank, so a category may return more than three rows when values are tied.
transaction_id, category, transaction_value, and transaction_rankcategory, transaction_rank, transaction_value descending, then transaction_id| Column | Type | Description |
|---|---|---|
| transaction_idPK | INT | Unique transaction identifier |
| category | VARCHAR(50) | Transaction category |
| transaction_value | DECIMAL(12,2) | Monetary value of the transaction |