Data Cleaning Exercises

Glossary

Orphan row

A row whose foreign key points to nothing in the referenced table.

Payments for an account that isn't in the account master are orphans. Don't drop them silently with an inner join: report them as exceptions so the source can be fixed and totals still reconcile.

Related: Referential integrity, Quarantine