RienSQL
TASK #102 · Hard · VK

Average number of transactions in 72 hours

Your brief
Calculate how many transactions users make on average within 72 hours from the moment of the first transaction.
Expected columnsavg_transactionsVK
SQL editor
SQLite
Ctrl / ⌘ + ↵
Result

Write a query and run it to see the results.

Schema
Transactionstransaction_ts, user_id, transaction_id, item