Your question is Rolling Five-Minute Transaction Threshold. Start with the requirements and the one table on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
NICE Actimize monitors transaction activity for rapid bursts that may indicate suspicious behavior. Write a PostgreSQL query to identify users who exceed three transactions in any inclusive rolling five-minute window.
user_id and order it by transaction_ts.user_id or transaction_ts, and sort results by user_id.| Column | Type | Description |
|---|---|---|
| transaction_idPK | BIGINT | Unique transaction identifier |
| user_id | BIGINT | Customer or account identifier |
| transaction_ts | TIMESTAMPTZ | Timestamp when the transaction occurred |
| amount | NUMERIC(12,2) | Transaction amount |