Expert Answer
Anonymous
select sum(amount)/count( distinct transaction_id) as avg_transaction
FROM transactions WHERE transaction_date >= CURRENT_DATE - INTERVAL '90 days'
GROUP BY customer_id
HAVING COUNT(transaction_id) > 10;
Square
Netflix
Snap
Dropbox
Samsara
Zalando
Anonymous
Anonymous
Prepare for success with realistic, role-specific interview simulations.
Try AI Interview NowInterview question asked to Data Scientists interviewing at Discord, Tesla, Square and others: Write a SQL query for the average transaction amount for customers who have made more than 10 purchases in the last 90 days..
Type or paste your answer below and get a strength-o-meter check.
Your answer will be graded on the following metrics: