For data ownersSource & qualityContact usA specialist brand of Fiund

Business intelligence / Research guide

Checking business-table joins: keys, cardinality and reconciliation

Test business dataset joins with a runnable multiplication example, unmatched-key audit, temporal lookup rules and a reviewable acceptance report.

FIELD NOTESBY FIUND
01Document02Link03Reconcile

Records · relationships · decisions

Cited references
2 cited sources
Inside this guide
2 worked examples
Reading time
5 minutes
Reviewed
2026-11-13

Prepared by the Fiund research desk from the cited public documentation. Technical examples describe their evidence and limits. Research method & editorial contact · Suggest a correction

Reading tools
The takeaway

A join-quality review asks whether records connect with the intended meaning and row counts. A successful SQL query or a high match rate is insufficient: duplicated lookup keys can multiply amounts, while inner joins can silently remove valid transactions. Establish the grain of each input, test key uniqueness, preserve unmatched cases and reconcile the resulting table before using it for training or analysis.

Your reading path

Start with the right questions.

  1. 01Write the relationship before writing the query
  2. 02Worked example: a perfect match rate can inflate revenue
  3. 03Interpret the discrepancy before fixing it

From principle to practice

Worked example: a perfect match rate can inflate revenue

SQLIllustrative example
Open the worked example

Write the relationship before writing the query

Start with a sentence such as “each order belongs to one customer record valid on its order date.” That sentence specifies more than two column names: it identifies the transaction unit, expected cardinality and historical lookup rule. If a row represents an order line rather than an order, document that difference before comparing totals.

Ask whether identifiers are unique globally, within a company, or only within a source system. A composite key such as source_system plus customer_id may be necessary. Do not trim, case-fold or cast keys to numbers without recording the transformation: leading zeroes and case can be meaningful. The W3C tabular-data model provides a vocabulary for table schemas and foreign-key relationships; an actual collection still needs its own field definitions.

Worked example: a perfect match rate can inflate revenue

The following SQLite example is deliberately defective. There are three orders and every order finds a customer. However, customer C1 occurs twice in the lookup table. Both of its orders are repeated in the joined output, so a 100% match rate accompanies an inflated monetary total. These are invented diagnostic rows, not operational Fiund data.

Runnable SQLite example: duplicate dimension keys inflate a transaction total
WITH orders(order_id,customer_id,amount) AS (
  VALUES ('O1','C1',100),('O2','C1',50),('O3','C2',80)
), customers(customer_id,region) AS (
  VALUES ('C1','West'),('C1','East'),('C2','North')
)
SELECT COUNT(*) AS joined_rows, SUM(o.amount) AS joined_amount
FROM orders o LEFT JOIN customers c
  ON o.customer_id=c.customer_id;
-- Expected: joined_rows=5, joined_amount=380.
-- Original orders: 3 rows, total amount=230.

Interpret the discrepancy before fixing it

The output has five rows and a sum of 380 instead of three orders totaling 230. O1 contributes 200 rather than 100; O2 contributes 100 rather than 50; O3 remains 80. The difference is explained by cardinality, not a rounding error. SQLite’s SELECT documentation describes how matching input combinations form join results.

Do not repair this result by applying DISTINCT to the final amount. Two genuine orders can share an amount, and duplicated customer rows may represent legitimate historical versions. Resolve the meaning of the right-side records first: reject unintended duplicate keys, choose a documented effective-date version, or keep the many-to-many relationship as a separate relation rather than flattening it.

A minimum reconciliation report

Run these checks on the proposed delivery and on relevant source slices. A single overall percentage can conceal one broken organization or month. Keep counts both before and after any documented exclusions.

Compare the evidence
CheckWhat to countWhat a failure may mean
Lookup uniquenessRows and distinct complete lookup keysRepeated entities, incomplete composite key or historical versions
Unmatched transactionsLeft-side keys with no approved targetMissing reference table, deleted records or incompatible snapshots
Output grainRows per original transaction identifierMultiplication, aggregation or lost transactions
Control totalsAmounts and distinct entities before and afterDuplicated values, filtering or inconsistent units
Null and malformed keysMissing, blank and invalid values separatelyUnknown identity or a parsing problem, not one generic missing bucket

Keep unmatched rows visible

Use a left-side reconciliation or a separate anti-join report when checking a source. An inner join answers a different question: it returns matched combinations and can make a defective delivery look clean by removing the evidence. Document the denominator for a match rate: transactions, distinct keys or monetary value lead to different interpretations.

For example, three unmatched orders out of 1,000 may appear minor, but they could contain the only orders from a required market. Review unmatched records by source, period and business category, then assign an explanation such as intentionally excluded, unresolved reference, or source defect. Acceptance thresholds should follow the planned task and consequence of error; this guide does not prescribe a universal percentage.

Historical joins need an event-time rule

If a customer moved region in June, a March order should not automatically inherit the customer’s current address. Ask for valid-from and valid-to fields, whether intervals can overlap, and how open-ended intervals are encoded. Specify an inclusive/exclusive boundary convention and test transactions exactly on a change date.

Also separate event time from the time a correction became available. A forecasting dataset may require what the organization knew on the decision date, rather than the corrected history visible today. Preserve the original transaction identifier and the selected lookup-version identifier so a reviewer can reconstruct the choice.

What to include in a business-data sourcing brief

Send a small relationship diagram, field dictionary, expected output grain and a few hand-checked examples. Add reconciliation queries, treatment of unresolved matches, the decision-time requirement and a source-level exception report. This gives a buyer a concrete acceptance artifact rather than a generic promise of “clean linked tables.”

A useful pilot deliverable contains the source tables, documented transformations, joined result, diagnostic counts and a list of unresolved cases. Confirm which preparation work is in the quote. A provider’s ability to supply files does not establish that a particular join, historical lookup or commercial use has already been validated.

Related sourcing decisions

Purchase order and invoice matching datasets: lines, receipts and exceptions — Build linked procurement datasets with line-level references, partial receipts, duplicate exports, currency context and an illustrative worked bundle.

Business dataset request template: a brief, coverage matrix and acceptance plan — Download a practical business data sourcing brief and coverage matrix with task boundaries, linked records, evidence requirements and quote components.

Questions buyers ask

Does a 100% key-match rate prove a join is correct?

No. The example matches every order while multiplying two of them. Review uniqueness, cardinality, output grain and control totals alongside match rate.

Should I remove duplicate keys automatically?

Only after determining their meaning. Duplicate keys can be data defects, historical versions or evidence that the selected key is incomplete. An arbitrary keep-first rule can discard the correct record.

What should a seller deliver when some relationships are unresolved?

An explicit exception file with stable source identifiers, reason codes and the agreed handling rule. Leaving the uncertainty visible is more useful than silently dropping records.

Sources & research notes

Public documentation reviewed 2026-11-13. Provider descriptions and published terms are attributed below. Published facts are attributed to their sources. Worked files are labeled as illustrative or as an inspected editorial source; neither implies commercial dataset clearance.

  1. Model for Tabular Data and Metadata on the WebW3C · Reviewed 2026-11-13

    Schema and relationship terminology; the invented example and review procedure are original to this guide.

  2. SELECT: joins and matching input combinationsSQLite · Reviewed 2026-11-13

    Reference for interpreting the runnable SQLite example, not evidence of a customer dataset.

Sourcing with Fiund

Turn the requirements into a sourcing brief.

Send the model task, required source characteristics, target volume, annotations, intended use and review criteria. Fiund can assess sourcing options and the preparation needed. Availability, source documentation, permitted uses and pricing are confirmed for the proposed project.

Discuss checking business-table joins: keys, cardinality and reconciliation ↗

Build with Business Datasets

Start with the data
your model needs.

Share your use case. Get a focused next step.

Request a sample

Original studio and recording photography. See the media notes for source context.

Search Business Datasets

About Business DatasetsRequest a business document dataset with an explicit example unitSolar project operating recordsRequest a sampleChart & Table QA DatasetsContract and clause extraction datasetsSupport Ticket DatasetsEnterprise Agent Tool-Use DatasetsExpert judgment and decision rationale datasetsBusiness Datasets buyer guides: types, pricing and providersMarket research and historical forecast datasetsSolar project and energy operations datasetsTechnical Manual DatasetsTerminal and enterprise agent task datasetsDataset offeringsDescribe the business records and relationships you retain.From a business-data question to a reviewable pilot.Real photography and recordingsPricing & project optionsPrivacyReview business data through its relationships.Authentic and synthetic business recordsBusiness Data DictionariesBusiness data release manifestsBusiness Data Temporal SplitsBusiness dataset coverage matrices: expose missing task intersectionsBusiness Dataset DuplicatesBusiness dataset pilot acceptanceBusiness Dataset Request TemplateBusiness document classificationBusiness document provenanceBusiness document redaction reviewBusiness email retrieval corporaChecking business-table joins: keys, cardinality and reconciliationMissing Business Table ValuesDocument AI Annotation SchemaMeasuring document-layout diversity for a document AI datasetEnterprise Retrieval EvidenceFinancial report and table reasoning datasetsResource libraryInvoice, receipt and ledger datasets: sources, pricing and evaluationMultilingual form and document extraction datasetsProcurement document datasetsE-commerce product catalog and pricing datasetsPO & Invoice Matching DataSupport ticket datasetsTable Extraction Ground TruthBusiness AI evaluation dataDocument AI datasets: connect pixels, text and business targetsEnterprise retrieval datasetsDataset solutionsProcurement and operations dataStructured business record datasetsReview structured business data with a small diagnostic ledgerWebsite information and project scope