# Why Your Data Already Knows How It Connects | Storek

> Relationships between tables are written in the values themselves. How they can be found, tested and explained automatically, without months of modeling.

Source: https://storek.io/blog/data-already-knows-how-it-connects

1.  [Home](https://storek.io/)
2.  [Blog](https://storek.io/blog)
3.  Why Your Data Already Knows How It Connects

Platform how-to

# Why your data already knows how it connects, and how the relationships can be found without a data scientist

Every join a data team would draw by hand leaves fingerprints in the data. The same customer number shows up in two tables; the same order number in three. Read those fingerprints carefully and the map draws itself.

Storek teamSeptember 15, 20264 min read

![Whiteboard in the chalkboard look: 7 links found between six clinic files, a 98% match from bookings to patients, horizontal bars of how many values from bookings, invoices, reminder notices and reviews are found in the patient table, and a donut of linked invoice rows.](https://storek.io/blog/data-already-knows-how-it-connects/hero.webp)

Sample dataThe links between a clinic's files, worked out from the values themselves. Illustrative data.

On this page

1.  [The fingerprints are in the values](#the-fingerprints-are-in-the-values)
2.  [Reading the evidence, step by step](#reading-the-evidence-step-by-step)
3.  [Why names alone mislead](#why-names-alone-mislead)
4.  [What changes when the map exists](#what-changes-when-the-map-exists)
5.  [Months, or minutes](#months-or-minutes)

Take a small chain of physiotherapy clinics, Brightwater Physio. It has a booking system, an invoicing tool, a reminder service that sends texts before appointments, and a spreadsheet of patient reviews. The owner wants to know something simple: do patients who get a reminder leave better reviews and come back more often?

To answer that, four sources have to be joined. Nobody at Brightwater has ever written down how. And yet the answer to “how do these connect?” is already sitting inside the files.

## The fingerprints are in the values

Open the booking export and you see a column called `patient_ref`. The invoice file has `client_id`. The reminder log has `pt_number`. The reviews sheet has an email address and a location name.

Different names, but look at the values. The same codes, in the same format, appear in the booking export, the invoices and the reminder log. They are the same patients, just labelled three different ways. The location names in the reviews sheet match the location table almost exactly, apart from one clinic that is sometimes written with “St.” and sometimes with “Street”.

That is what a relationship looks like from the inside: values that recur across tables, in a way that cannot be a coincidence. A data team would spot these by inspection and write them into a model. The same evidence can be read automatically.

## Reading the evidence, step by step

1.  ### Find the columns that behave like keys

    Some columns identify things: they have many distinct values, a consistent format, and few blanks. Those are candidate keys. Amounts, dates and free text are set aside.

2.  ### Compare values across tables

    For every pair of candidate columns, check how many values from one appear in the other. When nearly all of a column’s values turn up in another table’s key, that is a strong sign the first points at the second.

3.  ### Test the join with real queries

    A strong overlap is a proposal, not a fact. Joining the tables that way should leave few orphans and should not multiply rows unexpectedly. If the join behaves, it is kept. If not, it is rejected.

4.  ### Write down what was found and why

    Each link is recorded with its evidence, so anyone can see that bookings connect to patients through patient\_ref, and why that was believed.

Sample dataBookings, invoices and reminders all point at the same patients; reviews link through location. The dashed line was proposed by name and rejected by the values.

## Why names alone mislead

The tempting shortcut is to match columns by name. It fails in both directions. Columns with the same name often mean different things: the `id` on invoices and the `id` on locations have nothing to do with each other, and a join on them would produce confident nonsense. Meanwhile the columns that really do connect, `patient_ref`, `client_id` and `pt_number`, share no name at all.

The safe default

When the values and the names disagree, the values win. When the values are inconclusive, the answer is a question to a person, never a guess. A wrong join produces numbers that look right, which is the most expensive kind of wrong.

## What changes when the map exists

Once the map is in place, Brightwater’s owner can ask her question directly: do patients who got a reminder before their first visit come back more often, and how do their reviews compare? The answer joins four sources through links nobody had to design, and it shows the method so she can see exactly which patients were counted.

New files fit in the same way. When Brightwater adds its payroll export next quarter, the therapist codes in it are compared against the bookings, and the new link appears on the map with its evidence.

## Months, or minutes

The reason this used to take months is not that the joins are hard to state. It is that someone had to find them, one by one, across every source, and then keep them current as the systems changed. That is the work that can now happen by itself the moment data lands, in minutes, without a data scientist reading every column.

Your data already knows how it connects. The job is to read it carefully, prove what it says, and be honest about what it does not.

If you want a second pair of eyes on your own files, bring two that should connect and rarely do. We’ll show you what the values say.

Semantic layerData pipelinesAccuracy

## Keep reading

[Platform · Data mapping**Your data maps itself. Here is how.**Open the page →](https://storek.io/platform/data-mapping)[Platform how-to**From Scattered Spreadsheets to One Picture**Read the article →](https://storek.io/blog/scattered-spreadsheets-to-one-picture)[Platform how-to**Questions, Not Queries: Asking Data in Plain Words**Read the article →](https://storek.io/blog/questions-not-queries)

FAQ

## Questions, answered.

Why not just match columns by their names?

Names are a hint, not evidence. Two columns called id usually mean different things, and the same thing is often called cust\_no in one system and customer\_ref in another. The values are what actually connect.

How is a proposed relationship checked?

With test queries. Storek joins the tables the proposed way and looks at what happens: how many rows find a partner, whether one side fans out unexpectedly, and whether totals stay sensible. A link that fails is not used.

What happens when it is not sure?

It asks. A plausible but unproven link is shown to you as a question, with the evidence, rather than quietly used in answers.

Can I correct a relationship?

Yes. Every link is written down with the reason it was made, and you can reject or adjust it. The correction is used from then on.

Book a demo

## See your own data, delivered.

30 minutes. Your data or our sample. No slide deck. Pick a time straight after the form.
