SpinTheMic
Pro

Interview practice question

Revenue doubled after adding a join

Data Analyst · SQL for Analytics · Beginner

Your revenue total suddenly doubled after you joined the orders table to an order_items table. What happened?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • One-to-many join duplicates order rows.
  • Order amount repeated per item.
  • Aggregate items first, then join.
  • Or sum at item level.
  • Check row counts before/after joins.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics