Answer basic SQL questions without using window functions.
Using the transactions table, write a PostgreSQL query that returns the five customers with the highest total amount from completed transactions.
customer_name and total_amount.total_amount descending, then customer_name ascending to break ties.| Column | Type | Description |
|---|---|---|
| transaction_idPK | INT | Unique transaction identifier |
| customer_name | VARCHAR(100) | Customer associated with the transaction |
| status | VARCHAR(20) | Transaction status |
| amount | DECIMAL(10,2) | Transaction amount |