All jobs / Data analyst / BI / SQL

Data analyst / BI interview question · 1–3 years

You join orders to refunds (many refunds per order) then average order value. What bites you?

The strongest answer

The average is now refund-weighted unless you pre-aggregate refunds to order grain — fan-out changes the denominator

Why it works

Exactly. Pre-agg to the grain you will average. DISTINCT on amount is a different lie.

What a good answer covers

Answers that fall short

Who gets asked this

More SQL questions