ChalkData Engineer · Technical ScreenCodemia practicePrior Seven Day Transaction Velocity Features in SQL
From a transactions table (txn_id, user_id, ts, amount, status), compute for every transaction the number of the same user's transactions in the 7 days before it, their total amount, and how many were declined, using only strictly earlier transactions.
Medium
Data Manipulation (SQL/Python)