SpinTheMic
Pro

Interview practice question

Join exploding row counts

Data Engineering · Snowflake · Intermediate

A report suddenly shows revenue doubled. You find a join is returning more rows than expected. How do you debug and fix it?

What a strong answer covers

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

  • Compare row counts before and after each join.
  • Check the join keys for duplicates on the side expected to be unique.
  • Look at the query profile for a join with output much larger than input.
  • Fix by deduplicating the dimension or adding the missing join condition.
  • Add uniqueness tests on dimension keys.
Practise this topic

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

See all topics