Write a SQL query to identify users who have executed more than five transactions exceeding $10,000 within a rolling 24-hour window.
Use the transactions table. Treat the 24-hour interval as inclusive of both endpoints.
user_id, max_transactions_in_24h, and qualifying_window_end.user_id ascending.| Column | Type | Description |
|---|---|---|
| transaction_idPK | INT | Unique transaction identifier |
| user_id | INT | Identifier of the user who executed the transaction |
| transaction_ts | TIMESTAMPTZ | Timestamp when the transaction was executed |
| amount | NUMERIC(12,2) | Transaction amount in US dollars |