SpinTheMic
Pro

Interview practice question

Same customer IDs from two systems

Data Engineering · Data Modeling · Beginner

Two source systems both use customer IDs starting from 1, and they collide in your warehouse. How do you model customer keys?

What a strong answer covers

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

  • Natural keys are only unique within each source.
  • Make business key = source system + source ID.
  • Generate a warehouse surrogate key.
  • Map duplicates to a master customer if they're the same person.
  • Test uniqueness on the combined business key.
Practise this topic

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

See all topics