hard20 pts · first answer countsdata-warehousingsqldata-quality
Revenue tripled after a join
An order worth ₹1,000 has 3 shipment rows. An analyst runs this query. What total does it show for that order?
SELECT o.order_id, SUM(o.amount) AS revenue FROM orders o JOIN shipments s ON s.order_id = o.order_id GROUP BY o.order_id;
Discussion 0
Join free to post in the discussion.