I02BeginnerGlobal (fictional rules)
What happens to data when the same file is uploaded twice?
Find duplicates, blank keys and total errors in imported order rows and count the new orders to learn why uploads must check duplicates by key first.
- Author
- Seung-joo Park
- Reviewer
- Seung-joo Park
- Last updated
The company, items and quantities in this lesson are all fictional and for education only.
How we write and review lessonsWHY — why does it matter?
Step 1 of 6
Is it fine to upload the same file again?
- Situation
- A Hanbit Stationery clerk was unsure the shop’s order file had loaded and uploaded it again. The next day the same orders were registered twice, with shipments and sales both doubled. (Order numbers and amounts are made-up teaching data.)
- Problem
- In data integration you define a key such as the order number that identifies one record, and skip or update keys that already exist. Then uploading the same file again gives the same result.
- If it goes wrong
- Without a key check, duplicate orders inflate sales and stock, and blank keys and wrong totals are loaded as they are, spreading the error.
