RECIPE // dataPRODUCTION

Deterministic Deduplication & Merge

Turn duplicated source records into a repeatable winner-selection flow with explicit identity, source priority and tie-break rules.

Context Pack →Open Workspace →
Trust & provenancePRODUCTION
Evidence tierPRODUCTIONOfficial sources0Other sources0Last verifiedNot recorded

Evidence tier describes my hands-on relationship with the content. Official sources describe platform contracts/documentation. Production observations should not automatically be treated as official limits.

Outcome

A deduplicated staging dataset whose winning row is explainable and repeatable across runs.

Prerequisites

Define the logical identity key.

Define authoritative source precedence when multiple systems disagree.

Choose stable tie-break fields.

Execution path
01

State the output grain

Write down exactly what one output row represents before touching SQL.

02

Rank within the identity

Use ROW_NUMBER() with the business identity in PARTITION BY.

03

Encode business precedence

If one source is more authoritative, make that rule explicit before recency.

04

Add a deterministic tie-breaker

A timestamp alone is not enough if two rows can share the same value.

05

Inspect discarded rows

Validate rn = 2 / rn > 1 before promoting the winner logic to production.

06

Stage before destructive writes

Prefer a reviewable staging output before Add/Update or overwrite into a critical target.

LOCAL EXECUTION

Turn the Recipe into checkable work.

Progress, notes and history stay in this browser.

0%
0 / 6
Open related deployment →