Skip to content
Preptima
hardScenarioCodingCase StudyMidSeniorStaff

The customer's schema has no documentation and the person who designed it has left. How do you work out what the tables actually mean?

6 min readUpdated 2026-08-15

Answer

Short answer

Read the data rather than the DDL: profile every column for cardinality, null rate and value distribution, use foreign-key-shaped joins to test relationships you suspect, and confirm each conclusion against a report the business already trusts before you build on it.

Was this answer helpful?

Likely follow-ups

  • Two tables both look like the customer master and neither is empty. How do you determine which one the business runs on?
  • How would you handle a column whose meaning changed part-way through the history, with no flag marking the change?
  • What would make you stop reverse-engineering and insist on an interview with someone in the business instead?
  • You find rows that violate a constraint the schema does not declare. Is that a data quality problem or a clue?

Related questions