RienSQL
TASK #184 · Easy · Kaspi

VIP Users by Transaction Count

Your brief
The transactions table stores Kaspi user transactions: user_id is the user, transaction_date is the date, amount is the sum.

Analysts define VIP users as those who made more than 5 transactions in January 2024.

Output user_id and transactions_count (number of transactions in January 2024) for such users. Sort by user_id ascending.
Expected columnsuser_id transactions_countKaspi — transactions
SQL editor
SQLite
Ctrl / ⌘ + ↵
Result

Write a query and run it to see the results.

Schema
transactionstransaction_id, user_id, transaction_date, amount