How would you validate a query that counts distinct orders?
A second candidate solves the returns question with COUNT(DISTINCT order_id). Check that the denominator comes from all orders, including those with no matching return. Compare the result against the one-flag-per-order query on an order with two returned items and an order with none. Then ask Hiintly for a follow-up where the interviewer wants return share by customer rather than by order.
Try another example from the SQL interview questions guide.