Anonymous
select
user_id,
sum(amount) as total_money_spent
from
table
group by 1;
Amazon
Contribute your knowledge to access all answers
#Give&Take - Share to unlock
Prepare for success with realistic, role-specific interview simulations.
Try AI Interview NowInterview question asked to Business Intelligence Engineers interviewing at Amazon: Given invoice tables for multiple years, write a query to find the customers with the highest lifetime spend..
Type or paste your answer below and get a strength-o-meter check.
Your answer will be graded on the following metrics: