The previous lesson ended with two problems that no format conversion solves. The product that the store knows as 3301 is, for the warehouse ERP, ASP-0042: without knowing that, it is impossible to join sales with inventory. And the profiling in lesson 03-03 found about 600 customers who seem to have been registered more than once. In both cases the difficulty is the same: recognizing that different records, in different systems, refer to the same real-world thing, and deciding which of its versions is the right one.
That is the job of master data management (MDM). In this lesson we will distinguish master data from reference, transactional and analytical data; we will see why it diverges between systems, how a single, reliable record of each entity is built, which implementation styles exist and which one suits DataCorp. We will also close an open item that we have been carrying since lesson 02-05: how to relate orders to marketing campaigns for use case UC-02.
Four classes of data
Not all of a company's data plays the same role:
| Class | What it is | Pace of change | Examples at DataCorp |
|---|---|---|---|
| Master data | The business entities that operations revolve around: the "nouns" of the business. It is shared across many processes and systems | Slow | Customers, products, warehouses, campaigns |
| Reference data | Lists of allowed values that classify the other data | Very slow | Order statuses, product categories, cities and provinces |
| Transactional data | The facts that happen: the "verbs" of the business. It refers to master data | Continuous | Orders, order lines, tickets, browsing events |
| Analytical data | Data derived from the above for analysis | Depends on the loads | consumption.fact_sales, consumption.daily_net_sales |
One sentence ties them together: "the customer Lucía Ferrer (master) bought the product Cyclone X2 Vacuum Cleaner (master) in order 9005 (transactional), which has the status delivered (reference) and adds to the net sales of its day (analytical)".
Master and reference data is small in volume (200,000 customers and 15,000 products versus two million events a day), but every error in it is multiplied: a wrongly categorized product distorts all of its sales, past and future.
Why master data diverges
Each system was bought or built to solve a problem, and it created its own version of the entities it needed, with its own identifier and its own attributes. Nobody designed the divergence; it is the natural result of growing system by system.
This is what one and the same customer looks like at DataCorp today:
| System | Identifier | Name | City | |
|---|---|---|---|---|
| Store (PostgreSQL) | customer_id 1042 |
Lucía Ferrer | [email protected] | Bilbao |
| Store, second signup | customer_id 150318 |
LUCIA FERRER | [email protected] | Bilbao |
| Marketing | Contact C-88213 | Ferrer, Lucía | [email protected] | Valencia |
| Support | Reference to customer_id 1042 |
Lucia Ferrer | (the store's) | (not recorded) |
And one and the same product:
| System | Identifier | Name | Category |
|---|---|---|---|
| Store (PostgreSQL) | product_id 3301 |
Cyclone X2 Vacuum Cleaner | Home |
| Warehouse ERP | SKU ASP-0042 | CYCLONE X2 VACUUM CLEANER 1200W | (logistics family 07) |
The causes are repeated in every organization:
- Own identifiers. Each system generates its own and does not know those of the others.
- Duplicate signups. The customer registered twice; since the uniqueness constraint on the email is case-sensitive, the store allowed it.
- Updates that do not propagate. Lucía moved to Bilbao on November 10, 2026 and updated it in the store; marketing still has her in Valencia.
- Different attributes depending on the purpose. The ERP cares about the weight and the logistics family; the store, about the commercial name and the sales category.
- Different formats and conventions. Uppercase, accents, order of first and last name.
The consequences are the ones the course has been pointing out: customers counted twice, campaigns sent to the wrong city, sales that cannot be joined with inventory.
The golden record
The goal of MDM is to have, for each real entity, a golden record: the single, most complete and most reliable version of its data, built from all the source records that refer to it.
For Lucía it would be:
master_customer_id |
Name | City | Signup date | Source records | |
|---|---|---|---|---|---|
| 1042 | Lucía Ferrer | [email protected] | Bilbao | That of her first signup | Store 1042, store 150318, marketing C-88213 |
The golden record has two inseparable components: the consolidated attributes and the link to the source records. Without the second, the orders placed with the two store identifiers could not be added together.
Building it takes three steps, which we look at next: deciding which records are the same entity (entity resolution), deciding which value of each attribute prevails (survivorship rules) and storing the correspondence between identifiers (crosswalk table).
Entity resolution
Entity resolution (also called matching or deduplication) determines which records represent the same real entity. It is done in two stages.
Standardization
Before comparing, the values have to be brought to a common form; otherwise, irrelevant differences hide the matches. For a customer: email in lowercase and without spaces; name without accents, in lowercase and with single spaces; city normalized with the alias table from lesson 03-03.
Deterministic and probabilistic matching
| Deterministic matching | Probabilistic or fuzzy matching | |
|---|---|---|
| Rule | Two records are the same if they match exactly on a reliable key | A similarity score is calculated by combining several attributes |
| Example | Same normalized email | Very similar names and same city |
| Advantages | Simple, fast, explainable | It finds duplicates that the exact rule does not see |
| Risk | False negatives: it misses duplicates that differ by one letter | False positives: it may merge two different people |
| Decision | Automatic | Automatic above a high threshold; human review in the middle zone |
The following program combines both. It compares customers by normalized email and, if that does not match, by the similarity of the name, using the standard library difflib:
import unicodedata
from difflib import SequenceMatcher
def normalize_email(email: str) -> str:
return email.strip().lower()
def normalize_name(name: str) -> str:
# NFD separates each letter from its accent ('í' -> 'i' + accent) and the
# 'Mn' category identifies those loose accents, which are discarded
decomposed = unicodedata.normalize("NFD", name)
without_accents = "".join(c for c in decomposed
if unicodedata.category(c) != "Mn")
# split() with no arguments removes repeated, leading and trailing spaces
return " ".join(without_accents.lower().split())
def similarity(name_a: str, name_b: str) -> float:
"""Similarity between two names: from 0.0 (none) to 1.0 (identical)."""
return SequenceMatcher(None, normalize_name(name_a),
normalize_name(name_b)).ratio()
def compare(a: dict, b: dict) -> str:
# Rule 1 (deterministic): same normalized email
if normalize_email(a["email"]) == normalize_email(b["email"]):
return "SAME CUSTOMER (email)"
# Rule 2 (fuzzy): very similar name and same city -> a person decides
score = similarity(a["name"], b["name"])
if score >= 0.85 and a["city"] == b["city"]:
return f"REVIEW (similar name: {score:.2f})"
return f"DIFFERENT ({score:.2f})"
customers = [
{"id": 1042, "name": "Lucía Ferrer", "email": "[email protected]", "city": "Bilbao"},
{"id": 150318, "name": "LUCIA FERRER ", "email": " [email protected]", "city": "Bilbao"},
{"id": 187655, "name": "Lucía Ferrer Gil", "email": "[email protected]", "city": "Bilbao"},
{"id": 2210, "name": "Pau Soler", "email": "[email protected]", "city": "Girona"},
]
# Compare each customer with all those that follow it in the list
for i, a in enumerate(customers):
for b in customers[i + 1:]:
print(a["id"], b["id"], compare(a, b))SequenceMatcher(None, x, y).ratio()returns a number between 0 and 1 that measures how similar two texts are, based on the fragments they have in common.- The
comparefunction applies the rules in order of reliability: first the exact one and, only if it does not decide, the fuzzy one. - The fuzzy rule does not merge automatically: it returns
REVIEW. The 0.85 threshold is a starting point that must be tuned with real data.
Output:
1042 150318 SAME CUSTOMER (email) 1042 187655 REVIEW (similar name: 0.86) 1042 2210 DIFFERENT (0.29) 150318 187655 REVIEW (similar name: 0.86) 150318 2210 DIFFERENT (0.29) 187655 2210 DIFFERENT (0.24)
Lucía's second signup (150318) is recognized by the email, despite the uppercase letters and the spaces. Record 187655, "Lucía Ferrer Gil", with a different email address, is left for review: it may be the same person with a new account, or her daughter. Only a person can decide that, and merging two different customers by mistake is worse than leaving a duplicate, because it mixes their orders and their personal data.
Two practical notes. The double loop compares everybody with everybody: with 200,000 customers that would be about 20 billion comparisons. In practice blocking is used: comparing only within groups that share something, such as the city or the first letters of the last name. And difflib is fine for learning; there are specialized libraries with better similarity measures and statistical models.
Survivorship rules
Once it has been decided that several records are the same entity, you have to choose which value of each attribute "survives" in the golden record. Survivorship rules establish this attribute by attribute, with criteria such as these:
- Most reliable source: the system where the data is best maintained is preferred (the name from the store, which the customer types in personally, over the one from marketing).
- Most recent: the value updated last wins (the city).
- Most complete: the non-null or more detailed value wins.
- Most frequent: the value shared by the most sources wins.
- Oldest: the first known value wins (the signup date).
DataCorp's rules for the customer, approved by Nuria as owner of the domain:
| Attribute | Survivorship rule |
|---|---|
master_customer_id |
The oldest store customer_id among the merged records |
name |
The store's; if there are several, that of the record with the most recent order |
email |
That of the store record with the most recent order, normalized |
city |
The one most recently updated in the store |
signup_date |
The oldest |
For Lucía: identifier 1042, city Bilbao (marketing is out of date) and the date of her first signup. The golden record does not destroy the source records: they remain in the raw zone and, thanks to the crosswalks, it is always possible to explain where each value came from.
Identifier crosswalk tables
A crosswalk table (or cross-reference table) relates the master identifier of an entity to its identifiers in each system. It is the piece that makes it possible to join data across systems.
For the product, the canonical identifier is the store's product_id (as set in the canonical model of lesson 03-05) and it has to be related to the ERP SKU:
CREATE TABLE cleansed.xref_product (
erp_sku VARCHAR(20) PRIMARY KEY, -- identifier in the ERP
product_id INTEGER NOT NULL, -- store identifier (canonical)
origin VARCHAR(10) NOT NULL, -- 'automatic' or 'manual'
created_date DATE NOT NULL
);
INSERT INTO cleansed.xref_product VALUES
('ASP-0042', 3301, 'manual', DATE '2026-11-27'), -- Cyclone X2 Vacuum Cleaner
('REC-0107', 4410, 'manual', DATE '2026-11-27'), -- X2 Replacement Bags
('AUR-0015', 5120, 'manual', DATE '2026-11-27'); -- Air BT HeadphonesThe primary key is erp_sku: each SKU corresponds to a single store product, but several SKUs are allowed to point to the same product (for example, two logistics references for the same item). With the table, the ERP inventory can now be expressed in the common identifier:
-- ERP inventory translated into the store's product identifier
SELECT x.product_id, i.warehouse_id, i.inventory_date, i.units
FROM cleansed.inventory i
JOIN cleansed.xref_product x ON x.erp_sku = i.erp_sku;
-- Quality check: SKUs with stock that nobody has mapped yet
SELECT DISTINCT i.erp_sku
FROM cleansed.inventory i
LEFT JOIN cleansed.xref_product x ON x.erp_sku = i.erp_sku
WHERE x.erp_sku IS NULL;The second query is as important as the first. A plain JOIN silently discards the rows with no match: a new, unmapped product would disappear from the inventory and from the stockout alert (UC-03). That query becomes a quality rule (DQ-11, with warning severity) whose result is reviewed by Elena, steward of Products and inventory.
For customers there is an equivalent table, with one row for each source record:
cleansed.xref_customer master_customer_id | source_system | source_id | match_rule 1042 | store | 1042 | survivor 1042 | store | 150318 | email 1042 | marketing | C-88213 | email
The match_rule column records why each link was established. It is essential in order to be able to review and, if necessary, undo a wrong merge.
MDM implementation styles
There are four ways of organizing master data, which differ in where the golden record lives and in whether the source systems are modified:
| Style | How it works | The source systems... | Complexity | Suitable when |
|---|---|---|---|---|
| Registry | A central index stores only the correspondences between identifiers; the attributes stay in each system | Do not change | Low | It is enough to know which records are the same entity |
| Consolidation | A central repository builds the golden record from copies of the sources; it is used for analysis | Neither change nor receive the golden record | Medium | The goal is analytical |
| Coexistence | The golden record is built centrally and sent back to the source systems, which are synchronized | Are updated | High | Operations also need the unified data |
| Centralized (transactional) | Master data is created and modified only in the central system; the others receive it | Stop creating records | Very high | Large organizations with strong process discipline |
The styles form a progression: many organizations start with the first or the second and move on only if they need to.
DataCorp adopts the consolidation style, implemented within its own platform: the tables cleansed.master_customer and cleansed.master_product contain the golden records, and cleansed.xref_customer and cleansed.xref_product, the crosswalks. The reasons:
- The need is analytical: counting customers properly and joining sales with inventory.
- It does not require modifying the store or the ERP, or buying an MDM product, which respects the budget (RQ-12) and the size of the team (RQ-13).
- It builds on what already exists: the cleansed zone is the canonical model.
Its limit must be known: the source systems still have the duplicates. That is why it is complemented with a process measure: confirmed merges are reported to the store team so that it merges the accounts at the source, and it is asked to prevent signups with an email that differs only in case. It is the 1-10-100 rule applied to master data.
Reference data and its versioned management
Reference data is the lists of values that give meaning to the codes. They look trivial, but a business definition may depend on them entirely. The list of order statuses is the best example:
# reference/order_status.csv code,description,is_valid_sale,sort_order pending,Pending payment,true,1 paid,Paid,true,2 shipped,Shipped,true,3 delivered,Delivered,true,4 cancelled,Cancelled,false,5 returned,Returned,false,6
The is_valid_sale column turns the glossary's definition of "valid order" (POL-04) into data. Instead of repeating status NOT IN ('cancelled', 'returned') in every query, net sales can be calculated by joining with the cleansed.ref_order_status table and filtering on that column. When the out_for_delivery status appeared (exercise in lesson 03-03), the right solution was to add one row to this list, with Carmen's decision on whether it counts as a sale, and not to touch up queries one by one.
DataCorp's reference lists:
| Table | Content | Owner | Origin |
|---|---|---|---|
ref_order_status |
The six statuses and whether they count as a sale | Carmen (Sales) | Internal |
ref_category |
Product categories (Home, Electronics...) | Tomás (Products and inventory) | Internal |
ref_city |
Cities with their province and autonomous community | Nuria (Customers) | External (official gazetteer) |
ref_city_alias |
Spelling variants and their normalized city (lesson 03-03) | Nuria (Customers) | Internal |
External reference data (country codes, provinces, postal codes) is not made up: it is taken from its official source and updated when that source changes.
Its management follows four rules:
- A single place. Each list exists once, in the
reference/folder of the repository, and from there it is loaded into the cleansed zone. No process carries the list written in its code. - Versioned. Every change goes through the repository: who made it, when and why is recorded, and it can be reverted.
- Approved. The change is proposed by the steward and approved by the owner of the domain.
- No deletions. A code that is no longer used is not removed, because there is historical data that contains it; it is flagged as no longer in effect.
Master data and conformed dimensions
In lesson 02-05 we defined conformed dimensions: dimensions shared by several fact tables, with the same meaning in all of them. We said then that dim_customer and dim_product would serve sales, inventory, campaigns and tickets. What remained to be explained was where such consistent dimensions come from. The answer is master data:
graph LR
T["Store<br/>customers, products"] --> RE["Entity resolution<br/>and survivorship"]
E["ERP<br/>SKU"] --> RE
M["Marketing<br/>contacts"] --> RE
RE --> MC["cleansed.master_customer<br/>cleansed.master_product"]
RE --> X["cleansed.xref_customer<br/>cleansed.xref_product"]
MC --> D["Conformed dimensions<br/>dim_customer, dim_product"]
X --> H["Fact tables<br/>sales, inventory, tickets"]
D --> H
- The dimensions are loaded from the golden records:
dim_customerhas one member per real customer, not per signup. The history of the city (type 2 SCD) is still applied, now on the golden record. - The fact tables use the crosswalks to assign each fact to its member: an order placed with identifier 150318 is assigned to master customer 1042, and an inventory line with SKU ASP-0042, to product 3301.
MDM is therefore what makes a conformed dimension truly conformed. Without it, fact_sales and fact_daily_inventory would share the name of the dimension, but they could not be joined.
Governing master data
Master data is the ground where the governance from lesson 03-01 becomes most necessary, because it cuts across several systems and departments:
| Decision | Who makes it |
|---|---|
| Which system is the source of reference for each attribute | The owner of the domain |
| Matching rules and thresholds | The steward proposes them; the owner approves them |
| Survivorship rules | The owner of the domain |
Review of the doubtful cases (REVIEW) |
The steward, every week |
| Additions and changes to the reference lists | The steward proposes; the owner approves |
| Conflicts between domains (two lists of categories) | The data governance committee |
Two indicators are added to the quality dashboard: the percentage of source records linked to a master record (target: 100% of the SKUs with stock) and the number of cases pending review for more than 7 days.
A privacy warning: merging records about a person that come from several systems is processing of personal data. It must appear in the record of processing activities and respect the purposes of each source (lesson 03-04); the fact that it is technically possible to link the customer to their marketing contacts does not mean that any use of that link is legitimate. As stated there, these decisions require review by the DPO.
The open item of UC-02: relating orders and campaigns
Use case UC-02 (campaign profitability) needs to know which orders each campaign generated, and lesson 02-05 noted that orders do not record the campaign they came from. It is a master data problem: the campaign master exists (in marketing) and the orders exist (in the store), but no identifier joins them.
The starting point is for each campaign to have a unique code, campaign_code (for example, BF26-HOGAR), managed as master data by Marketing, and for the links in its ads to include it in the utm_campaign tracking parameter. From there, there are three ways of relating it to the orders:
| Option | How it works | Advantages | Drawbacks |
|---|---|---|---|
| A. Record the code on the order | The store keeps the utm_campaign of the visit and, when the purchase is confirmed, writes it to a new column orders.campaign_code |
Exact, trivial join; the attribution is fixed at the moment of the sale | It requires a change in the store; it does not work for earlier orders; a single attribution criterion |
| B. Attribution through the clickstream | Each customer's journey is reconstructed from the browsing events and related to their orders by customer and time window | It makes it possible to share the credit among several campaigns | Complex; today the events include neither the campaign nor a purchase event with order_id; it does not cover anonymous browsing |
| C. Promotional codes | Each campaign has a coupon that the customer enters | Simple | It only covers the campaigns with a coupon and those who use it |
DataCorp chooses option A, with these rules, which Nuria approves as owner of the Marketing domain:
- The store will add the column
orders.campaign_code, which allows nulls. It is requested from the development team together withupdated_at(ADR-007); it is a compatible change to the data contract, which moves to version 1.1.0. - Attribution criterion: last click, with a 7-day window. The order is attributed to the last campaign through which the customer arrived, if the purchase takes place within the following seven days.
- Orders without a code, and all those prior to the change, are assigned to the special member "No attributed campaign" (key 0) of the future
dim_campaign. - A new quality rule, DQ-12, checks that every
campaign_codeon an order exists in the campaign master. An unknown code gives away a wrongly tagged link. - The definition of "order attributed to a campaign" is added to the business glossary.
Option B remains a possible evolution: when the conversion funnel (UC-04) is tackled, the campaign code will be added to the events, which will open the door to richer attribution models. And, like all tracking of browsing, attribution depends on the legal basis and the consents determined by the DPO (lesson 03-04).
With this decision, the bus matrix from lesson 02-05 gains one more conformed dimension: dim_campaign will relate fact_sales to fact_campaigns, and the profitability of a campaign will be the net sales of its orders divided by its cost.
ADR-008
ADR-008: Master data by consolidation in the cleansed zone and
attribution of orders to campaigns
Status: accepted Date: 2026-11-27
CONTEXT
Customers and products have different identifiers and attributes in the
store, the ERP, marketing and support; there are about 600 possibly
duplicate customers. Orders do not record their source campaign (UC-02).
DECISION
1. Consolidation-style MDM, within the platform and with no dedicated
product: golden records in cleansed.master_customer and
cleansed.master_product; crosswalks in cleansed.xref_customer
and cleansed.xref_product.
2. Master identifiers: the store's customer_id and product_id.
3. Customers: automatic merge by normalized email; similar name
(similarity >= 0.85) and same city, sent to the steward for review.
4. Reference data (ref_ tables) versioned in reference/ in the
repository, with approval by the owner of the domain.
5. The conformed dimensions are loaded from the golden records.
6. Campaigns: column orders.campaign_code in the store; last-click
attribution with a 7-day window; member "No attributed campaign".
ALTERNATIVES CONSIDERED
A. Commercial MDM product, coexistence or centralized style.
Rejected: cost and operation out of proportion (RQ-12, RQ-13).
B. Not unifying and joining by email in every query. Rejected: each
analyst would apply their own criterion (it breaches RQ-11).
C. Campaign attribution through the clickstream. Deferred: complexity
and data currently insufficient in the events.
CONSEQUENCES
Positive: unique customers and products in the analysis; sales and
inventory can be joined; UC-02 unblocked for future orders.
Negative: the duplicates persist in the source systems; weekly manual
review; there is no attribution for orders prior to the change.Common Mistakes and Tips
- Starting with the tool. An MDM product does not decide which system rules or when two customers are the same. Rules and accountable people come first.
- Merging too aggressively. A false positive mixes the orders and the personal data of two people, and it is much harder to undo than a duplicate. When in doubt, send it to review.
- Not keeping the link to the source. Without a crosswalk table, a golden record cannot be explained and a merge cannot be undone.
- Using
JOINwith the crosswalk table without watching what does not match. The rows with no match disappear without warning. Always accompany the join with its check. - Lists of values written in the code. Every copy will diverge. One list, one place.
- Deleting reference codes that are no longer used. The historical data is left orphaned. Flag them as no longer in effect.
- Forgetting the source. If the cause of the duplicates is still active, the unification work never ends.
- Tip: measure how many records are merged by each rule and review a sample from time to time. A rule that suddenly merges three times as many is a warning sign.
Exercises
Exercise 1: Applying survivorship rules
Three records have been identified as the same customer. Build their golden record with DataCorp's rules and write the rows of cleansed.xref_customer.
| System | Identifier | Name | City | Signup | Last order | |
|---|---|---|---|---|---|---|
| Store | 2210 | Pau Soler | [email protected] | Girona | 2023-03-02 | 2025-12-01 |
| Store | 164020 | Pau Soler Vila | [email protected] | Barcelona | 2026-05-20 | 2026-10-15 |
| Marketing | C-70411 | SOLER, PAU | [email protected] | Gerona | (not recorded) | (not applicable) |
Exercise 2: Extending the comparison
Add a third rule to the lesson's compare function: if the email does not match, but the part before the at sign is identical, the name has a similarity of at least 0.90 and the city matches, the result must be REVIEW (same email username). Why is it not advisable to merge automatically in this case?
Solutions
Exercise 1
master_customer_id |
Name | City | Signup date | |
|---|---|---|---|---|
| 2210 | Pau Soler Vila | [email protected] | Barcelona | 2023-03-02 |
- Identifier: the oldest store
customer_id(2210). - Name and email: those of the store record with the most recent order (164020), with the email normalized.
- City: the one most recently updated in the store (Barcelona). Marketing's "Gerona" plays no part: the source of reference is the store.
- Signup date: the oldest.
master_customer_id | source_system | source_id | match_rule 2210 | store | 2210 | survivor 2210 | store | 164020 | email 2210 | marketing | C-70411 | email
Note: in dim_customer, the change from Girona to Barcelona will generate a new version of the customer (type 2 SCD), so his 2025 orders will still count in Girona.
Exercise 2
def compare(a: dict, b: dict) -> str:
email_a, email_b = normalize_email(a["email"]), normalize_email(b["email"])
if email_a == email_b:
return "SAME CUSTOMER (email)"
score = similarity(a["name"], b["name"])
same_city = a["city"] == b["city"]
# New rule: same email username on different domains
username_a, username_b = email_a.split("@")[0], email_b.split("@")[0]
if username_a == username_b and score >= 0.90 and same_city:
return "REVIEW (same email username)"
if score >= 0.85 and same_city:
return f"REVIEW (similar name: {score:.2f})"
return f"DIFFERENT ({score:.2f})"split("@")[0] returns the part of the email before the at sign. The new rule is placed before the generic one because it is more specific and gives the steward a more informative reason.
It is not advisable to merge automatically because maria.garcia@ exists on many domains and belongs to different people; with common names, even when the city matches, the probability of a false positive is high. The evidence is enough to propose the merge, not to carry it out.
Conclusion
Master data is the core entities of the business (customers, products, warehouses, campaigns) and reference data, the lists of values that classify them. They diverge between systems because each one created its own version, with its own identifiers and attributes. Master data management builds a golden record of each entity through entity resolution (standardization and deterministic or fuzzy matching, with human review in the doubtful cases), survivorship rules and the crosswalk tables that preserve the link to each source system. DataCorp adopts the consolidation style within its own cleansed zone, manages its reference lists in a versioned way and feeds the conformed dimensions of the dimensional model with all of it. ADR-008 captures this, together with the solution to the open item of UC-02: a campaign_code column on the orders and last-click attribution with a seven-day window.
This lesson brings Module 3 to an end. DataCorp now knows how it is going to manage its data: who is accountable for each domain and under which policies, how the data is documented and its lineage traced, with which rules its quality is measured, who can see what and how people are protected, with which pattern each source reaches the platform and how the same customer or product is recognized in different systems. But all of this is still design: the master tables, the quality checks and the masked views do not exist yet, because nothing moves or transforms a single piece of data so far. Building the processes that extract the data from the sources, cleanse it and load it into each zone is the purpose of Module 4, devoted to data processing, which begins with the most classic approach: ETL, or extract, transform and load.
