What is the difference between a true duplicate and legitimately repeated data? Provide an example.

Quick Overview

A data cleaning interview question asking how a true duplicate differs from legitimately repeated data, with an example. It tests whether you reason about what each row records, which fields identify a real event, and what goes wrong when you remove or keep the wrong rows.

What is the difference between a true duplicate and legitimately repeated data? Provide an example.

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: easy

Interview Round: Other

What is the difference between a true duplicate and legitimately repeated data? Provide an example. ```hint Ask what each row records For two rows with the same values, ask whether the real world contains one event or two, and which field would tell you. ``` ### What a Strong Answer Covers - A definition of each kind of repetition in terms of the real-world entity or event the row records - A concrete example of each, ideally from the same kind of table - How to tell them apart: identifying keys, timestamps, the process that wrote the data, and domain knowledge - What to do with each kind, and what goes wrong when you remove or keep the wrong rows ### Follow-up Questions - A table has no unique transaction ID. How would you decide whether two identical rows are duplicates? - How would you prevent retry duplicates at write time? - How do you find near-duplicates, such as one customer entered with two spellings of their name? - How would duplicate rows affect total revenue compared with a count of distinct customers?

Overview: A data cleaning interview question asking how a true duplicate differs from legitimately repeated data, with an example. It tests whether you reason about what each row records, which fields identify a real event, and what goes wrong when you remove or keep the wrong rows.

General logo
General
Nov 25, 2026
easyData ScientistOtherData Manipulation (SQL/Python)
0
0

What is the difference between a true duplicate and legitimately repeated data? Provide an example.

What a Strong Answer Covers Guidance

  • A definition of each kind of repetition in terms of the real-world entity or event the row records
  • A concrete example of each, ideally from the same kind of table
  • How to tell them apart: identifying keys, timestamps, the process that wrote the data, and domain knowledge
  • What to do with each kind, and what goes wrong when you remove or keep the wrong rows

Follow-up Questions Guidance

  • A table has no unique transaction ID. How would you decide whether two identical rows are duplicates?
  • How would you prevent retry duplicates at write time?
  • How do you find near-duplicates, such as one customer entered with two spellings of their name?
  • How would duplicate rows affect total revenue compared with a count of distinct customers?