Return
card_id (the card’s unique identifier)last4 (last four digits of the card)network (card network)transaction_id (ID of the highest-value transaction)amount (transaction amount)txn_at (timestamp of the transaction)merchant_name (name of the merchant)category (merchant category)card_id in ascending order.Expected output
| card_id | last4 | network | transaction_id | amount | txn_at | merchant_name | category |
|---|---|---|---|---|---|---|---|
| 1 | 4417 | visa | 40 | 2600 | 2024-03-28 14:02:00 | Gucci | luxury |
| 2 | 5590 | mastercard | 19 | 899 | 2024-03-08 13:20:00 | BestBuy | electronics |
| 3 | 3701 | amex | 34 | 540 | 2024-03-15 09:05:00 | Emirates | airline |
First 3 of 8 rows your query should return. Your column aliases don't need to match.