Write a SQL query to retrieve all customers with tax returns above a certain threshold at Jackson Hewitt.
Use $10,000 as the threshold. Treat a NULL return amount as zero and include only customers whose combined return amount is greater than the threshold.
customer_id, customer_name, and total_return_amount.total_return_amount descending, then customer_id ascending.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer's full name |
| Column | Type | Description |
|---|---|---|
| return_idPK | INT | Unique tax return record identifier |
| customer_id | INT | Customer associated with the tax return |
| tax_year | INT | Tax year for the return |
| return_amount | NUMERIC(12,2) | Tax return amount, which may be NULL |