Top Customers by Spend

Programming Interview Easy 6 views
Back to Questions
Next Employees Without Manager Easy N

Problem Description

Tables: Orders(order_id, customer_id, total_amount, created_at). Return customer_id and total spend, sorted by spend desc.

Input Format

SQL tables are described in the question.

Output Format

Write the SQL query.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Next