Founding customers: 10 free pilots in 2027. See the offer

Legacy schema traps · Keys and relations

Why do old orders show the wrong customer?

Because the system reuses numbers, after a deletion or a yearly reset. The same order number then points to different orders in different years, and a lookup on the number alone merges them.

Run the free schema checkFree · five minutes · only schema and aggregates leave you

What it looks likeIllustrative

Order numbers restart at 1 each year; ORDNO=1532 exists in 2019 and in 2023.

All table and column names are invented.

Why reports and AI agents get it wrong

It treats the number as unique and merges history.

A first check you can run

Compare row count with distinct key count per year or per date range.

Read-only and on the catalogue or aggregates: it looks at structure and value counts, not at individual records.

How Janus Works handles it

The key used in every tool includes what makes it unique; history questions are tested across years.

Every number verified against your own screens. Deviations shown, never hidden.

Run the free schema checkFind the traps in your own database. Free schema check, five minutes.