Write a SQL query to find all customers who made transactions over a specified amount in the last month.
For deterministic evaluation, use a threshold of 1000 and treat August 2026 as the last month. Include only transactions strictly greater than the threshold. Transactions with a NULL amount are ignored.
customer_id, customer_name, qualifying_transaction_count, and max_transaction_amount.customer_name ascending, then customer_id ascending.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer or institutional account name |
| Column | Type | Description |
|---|---|---|
| transaction_idPK | INT | Unique transaction identifier |
| customer_id | INT | Customer associated with the transaction |
| transaction_date | DATE | Date the transaction was recorded |
| amount | NUMERIC(12,2) | Transaction amount |