SpinTheMic
Pro

Interview practice question

Row counts don't match between source and target

Data Engineering · SQL · Beginner

The source table has 1,000,000 rows but the warehouse table has 998,500. How do you find the missing rows?

What a strong answer covers

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

  • Compare counts by day or batch to narrow the gap.
  • Use an anti-join on the primary key to find missing records.
  • Check for rows rejected by load errors or filters.
  • Check for duplicates hiding real gaps.
  • Fix and reload only the affected range.
Practise this topic

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

See all topics