A conference talk by an Oracle developer arguing that virtually every database contains corrupt data due to the near-impossibility of enforcing complex multi-row, multi-table business rules through application code. Using live demos, the speaker shows how a seemingly simple rule like 'no employee can earn more than their department head' explodes into hundreds of lines of API code riddled with edge cases and concurrency bugs. The core solution presented is SQL assertions — a feature defined in the 1992 SQL standard but never implemented by any major vendor until Oracle. Assertions let developers declare boolean constraints directly in the database engine, which then handles validation, edge cases, and concurrency automatically. The talk covers deferrable assertions, partial validation, performance characteristics, and current limitations such as no aggregation support and a maximum of three levels of nesting.

45m watch time

Sort: