#718

OTP-category indicator flag

Bank Otkritie is building risk scoring by the operation type — payments and regular transfers need different limits and anti-fraud logic. Analytics prepares an indicator to split these streams in the dashboard. Attach an indicator to each row: 1 when category contains payment, and 2 when category contains transfer but does not contain acc. Drop every other row — they don't belong in the dashboard feed.

Expected output sample

This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.

statuscategoryclient_idindicatorentered_atsession_id
successotp-payment212024-04-01T07:05:00.000Z101
successotp-transfer322024-04-01T07:10:00.000Z102
successotp-payment-recurring512024-04-01T07:20:00.000Z104
Bank Otkritie

Your query result will appear here

Focus radio
Paused · SomaFM · Fluid