Why two tables don't join
The agent compares key formats in two tables, finds mismatches, proposes normalisation rules and tests the join rate. You review a sample and approve the rules.
What the agent does
- 1
Read both tables.
- 2
Compare key formats.
- 3
Find mismatches.
- 4
Propose normalisation.
- 5
Test the join rate. → analyst approves rules
Enough to decide?
Proposed pattern- Required input
- No example input written yet
- Example output
- No example output written yet
- Stop condition
- wrong match; sample review
- Reviewer
- Not yet independently reviewed
- Last run
- Not run by us yet
What it costs to run
A rough range per run, from the cheapest to the dearest of the paid models we checked. Your real cost depends on how much text you send.
Checked 2026-11-25 source
$0.001 to $0.30 per run · $0.016 per run with a mid-priced model
- Small, cheap model
- $0.001 per runPer 100 runs: $0.11
- Typical
- $0.016 per runPer 100 runs: $1.63
- Large model
- $0.30 per runPer 100 runs: $30.00
Free tiers and local models can bring this to zero while you test.
How we worked this out
- 5 model calls, one per step (at least 2)
- 4,000 input tokens per call (it reads documents or data)
- 500 output tokens per call
- each call re-reads the earlier outputs
- no retries, no loops, no cached-input discount
- Longer inputs cost more; agents that retry or loop use more calls.
- Free tiers may cover small volumes: see free AI tokens.
- Local models have no per-token price but need your own hardware.
Works with
Tags
Before you start
- Access the agent needs
- database
- Who approves
- analyst approves rules
- What to log
- every action it proposes and the decision taken
- When to stop
- wrong match; sample review
Why it is worth it
Tables that should join but do not waste analysts' days.
Start this week
- Let the agent compare key formats.
- Have it propose normalisation and test the join rate.
- Approve after a sample.
Watch out for
A wrong normalisation joins the wrong rows, so check a sample of joined rows before you approve.
Measure this
Join rate.
About this entry
Proposed pattern Checked 2026-11-27 Next check 2026-12-25 v2026-11-27.1
What we checked
| Item | Result | Date | By | Source and note |
|---|---|---|---|---|
| Text and steps | Checked | 2026-11-25 | — | — |
| Human checkpoint and risks | Checked | 2026-11-25 | Reviewer to be named | — |
| Workflow run | Not checked yet | — | — | — |
| Cost estimate | Checked | 2026-11-25 | — | source · mid-priced model assumed |
| Tool links | Not checked yet | — | — | — |
| Outside evidence | Not checked yet | — | — | — |
Limitations
- This is a pattern written from how the job is usually done. We have not run it.
- Steps, tools and risks are general. Your systems and rules will differ.
- Test it with made-up or public data before using real data.
- Not checked yet: workflow run, tool links, outside evidence.
Change history
- Watch-out line rewritten spec v2026-11-27.1
- Long text added: why it is worth it, how to start, what to watch out for, how to measure it spec v2026-11-26.1
- Added to the catalogue spec v2026-11-25.1
Evidence
- No outside evidence yet; this is our own analysis.
Spec versions
- v2026-11-27.1 · Watch-out line rewritten
- v2026-11-26.1 · Long text added: why it is worth it, how to start, what to watch out for, how to measure it
- v2026-11-25.1 · Added to the catalogue
Run it with AI
Pick the AI you already use.
You are helping data analyst. Goal: Why two tables don't join. The agent compares key formats in two tables, finds mismatches, proposes normalisation rules and tests the join rate. You review a sample and approve the rules. Work through these steps and show your result for each: 1. Read both tables. 2. Compare key formats. 3. Find mismatches. 4. Propose normalisation. 5. Test the join rate. Tools or data I can give you: database. Ask me for anything missing before you start. Do not take any action yourself; stop for my decision where: analyst approves rules. Watch for: wrong match; sample review.
Opens the tool with your prompt already filled in. Review it there before you send.
Copies the prompt, then opens the tool. Paste it in to start.
Nothing happened? The Claude Desktop app (Mac, Windows, or Linux, where it is still in beta) may not be installed. Use the copy button instead.
ROLE: Assistant for data analyst. TASK: Why two tables don't join. SUMMARY: The agent compares key formats in two tables, finds mismatches, proposes normalisation rules and tests the join rate. You review a sample and approve the rules. PROCEDURE: 1. Read both tables. 2. Compare key formats. 3. Find mismatches. 4. Propose normalisation. 5. Test the join rate. HUMAN CHECKPOINT: analyst approves rules GUARDRAILS: wrong match; sample review RULES: ask when inputs are missing; never invent facts; cite where each fact came from.
Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "join-key-mismatch-fixer-0053",
"goal": "Why two tables don't join",
"persona": [
"data-analyst"
],
"autonomy": "assist",
"tools": [
"database"
],
"plan": [
"Read both tables.",
"Compare key formats.",
"Find mismatches.",
"Propose normalisation.",
"Test the join rate."
],
"human_in_the_loop": "analyst approves rules",
"guardrails": "wrong match; sample review",
"output": "a draft for human review"
}Copies the prompt, then opens the tool. Paste it in to start.
{
"trigger": "On demand (manual start)",
"steps": [
{
"n": 1,
"do": "Read both tables."
},
{
"n": 2,
"do": "Compare key formats."
},
{
"n": 3,
"do": "Find mismatches."
},
{
"n": 4,
"do": "Propose normalisation."
},
{
"n": 5,
"do": "Test the join rate."
}
],
"connects": [
"database"
],
"approval": "analyst approves rules",
"stop_on": "wrong match; sample review"
}Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "join-key-mismatch-fixer-0053",
"goal": "Why two tables don't join",
"persona": [
"data-analyst"
],
"autonomy": "assist",
"tools": [
"database"
],
"plan": [
"Read both tables.",
"Compare key formats.",
"Find mismatches.",
"Propose normalisation.",
"Test the join rate."
],
"human_in_the_loop": "analyst approves rules",
"guardrails": "wrong match; sample review",
"output": "a draft for human review"
}Opens the tool with your prompt already filled in. Review it there before you send.
Copies the prompt, then opens the tool. Paste it in to start.
You are helping data analyst. Goal: Why two tables don't join. The agent compares key formats in two tables, finds mismatches, proposes normalisation rules and tests the join rate. You review a sample and approve the rules. Work through these steps and show your result for each: 1. Read both tables. 2. Compare key formats. 3. Find mismatches. 4. Propose normalisation. 5. Test the join rate. Tools or data I can give you: database. Ask me for anything missing before you start. Do not take any action yourself; stop for my decision where: analyst approves rules. Watch for: wrong match; sample review.
Copies the prompt, then opens the tool. Paste it in to start.
You are helping data analyst. Goal: Why two tables don't join. The agent compares key formats in two tables, finds mismatches, proposes normalisation rules and tests the join rate. You review a sample and approve the rules. Work through these steps and show your result for each: 1. Read both tables. 2. Compare key formats. 3. Find mismatches. 4. Propose normalisation. 5. Test the join rate. Tools or data I can give you: database. Ask me for anything missing before you start. Do not take any action yourself; stop for my decision where: analyst approves rules. Watch for: wrong match; sample review.
Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "join-key-mismatch-fixer-0053",
"goal": "Why two tables don't join",
"persona": [
"data-analyst"
],
"autonomy": "assist",
"tools": [
"database"
],
"plan": [
"Read both tables.",
"Compare key formats.",
"Find mismatches.",
"Propose normalisation.",
"Test the join rate."
],
"human_in_the_loop": "analyst approves rules",
"guardrails": "wrong match; sample review",
"output": "a draft for human review"
}Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "join-key-mismatch-fixer-0053",
"goal": "Why two tables don't join",
"persona": [
"data-analyst"
],
"autonomy": "assist",
"tools": [
"database"
],
"plan": [
"Read both tables.",
"Compare key formats.",
"Find mismatches.",
"Propose normalisation.",
"Test the join rate."
],
"human_in_the_loop": "analyst approves rules",
"guardrails": "wrong match; sample review",
"output": "a draft for human review"
}Copies the prompt, then opens the tool. Paste it in to start.
At a glance
- For
- data analyst
- Industry
- analytics
- Autonomy
- assist
- Difficulty
- Works with
- Steps
- 5 · 1 human checkpoint
- Runs as
- on demand
- Data touched
- read-only
- Needs approval
- analyst approves rules
- What it costs to run
- $0.016 per run with a mid-priced model
- Evidence
- ID
UC-0053
Compare routes for this job
Share this comparison| For this job | Claude | ChatGPT | Perplexity |
|---|---|---|---|
| What you do by hand | Paste or attach the input each time, check the answer, and carry the result to where it goes yourself. | Set up the assistant once with your instructions and files. Then paste or attach each new input, check the answer and carry the result on. | Write or copy a short script that calls the model, run it and check its output. Watch the free limits, and keep private data out unless the provider's terms allow it. |
| Human checkpoint | analyst approves rules | ||
| Typical API cost (same for every route) | $0.016 per run with a mid-priced model checked 2026-11-25 · pricing source | ||
| Learning curve | Point and click | Point and click | Point and click |
| Price model | free tier | free tier | free tier |
| Where your data goes | What you type and upload goes to Anthropic's servers and is handled under its terms. Check its data settings before you use real work data. | What you type and upload goes to OpenAI's servers and is handled under its terms. Check its data settings before you use real work data. | Your questions go to Perplexity's servers and are handled under its terms. Answers are built from web pages it searches. |
| Before you start | An account on the website. The free plan is enough to try it. | An account on the website. The free plan is enough to try it. | An account on the website. The free plan is enough to try it. |
| Evidence for this route | Proposed pattern | Proposed pattern | Proposed pattern |
| Open | Open in run panel Tool page | Open in run panel Tool page | Open in run panel Tool page |
Where to go from here
All data analyst use casesSimilar work
These use cases do the same kinds of work as this one. Each card shows what they have in common.
Messy spreadsheet into clean tables
The agent infers a schema from a spreadsheet, cleans the values, loads them into staging and validates them. It reports rejected rows with counts so no data is lost silently. You approve the load.
Survey data cleaning with a step-by-step log
The agent cleans a survey dataset for your project: it fixes data types, handles missing values and removes duplicates. It logs every step, with row counts, so no data disappears silently. You review the log.
Same metric, different formulas: dashboard audit
The agent extracts the logic behind a metric from each dashboard's queries, compares the definitions and lists mismatches. It proposes a single definition, showing both formulas side by side. Analysts agree the final definition.
Same kinds of tools, a different job
These use cases connect to the same kinds of tools as this one, so part of your setup carries over.
Morning data quality checks on key tables
Each morning the agent runs checks for nulls, duplicates and drift on key tables, compares them with a baseline and classifies issues by severity. It alerts table owners and logs trends. Owners fix the issues.
Personal data column scanner
The agent scans schemas and samples for patterns of personal data, lists the columns found and suggests masks. It reports to the data protection lead, who decides.
Customer segments from behaviour
The agent builds features from events, clusters customers and names each segment with evidence. It tests cluster stability and writes a profile per segment. You validate.