All jobs / Data analyst / BI / SQL

Data analyst / BI interview question · 0–1 years

A join fans one customer into five rows. What does COUNT(*) now mean?

The strongest answer

Rows after the fan-out, not customers — if you want people, you need a distinct of the customer key or a pre-aggregate

Why it works

Exactly. COUNT(*) counts rows. Fan-out is how “users” become a multiple.

What a good answer covers

Answers that fall short

Who gets asked this

More SQL questions