Vol. I a living index of named laws · est. mmxxvi no ads · no account
The Law Tomeindex of named laws

Codd's Twelve Rules

"Codd's twelve rules define thirteen requirements, numbered 0 through 12, that a database system must satisfy to be considered truly relational."
In plain English

What does Codd's Twelve Rules mean?

Edgar F. Codd formulated these rules to give a precise, checkable definition of what it means for a database management system to be "relational," rather than merely resembling one. They cover how data is represented, accessed, and manipulated so that all interaction happens through the relational model itself, without bypass mechanisms.

Reliability

Rated Heuristic: a dependable rule of thumb, not a proven theorem. The other 224.

Lineage
1985COINED
How it works

How does Codd's Twelve Rules work?

Rule 0 (the "Foundation Rule") requires that a system manage its stored data entirely through its relational capabilities, and the remaining twelve elaborate specific consequences. Rule 1 requires all data to be represented explicitly as values in tables, Rule 3 requires systematic handling of missing (NULL) data independent of type, and Rule 12 (the "Nonsubversion Rule") forbids low-level languages from bypassing relational integrity constraints. Together they act as a conformance checklist.

Where you'll see it

What are examples of Codd's Twelve Rules?

Rule 3 — NULLs SQL databases use a single NULL marker for both "value inapplicable" and "value unknown," which does not fully satisfy Codd’s original distinction between two kinds of missing information.
Rule 6 — view updating Vendors generally support updating only views that map to a single base table, since Codd’s requirement that all theoretically updatable views be updatable proved impractical for complex joins.
Rule 12 — nonsubversion SQL’s row-by-row cursor operations must still respect declared integrity constraints, reflecting the rule that low-level record-at-a-time access cannot circumvent relational integrity.
Why it matters

Why does Codd's Twelve Rules matter?

The rules gave the database industry a rigorous yardstick during the early 1980s, when vendors were rebranding pre-relational products with a "relational veneer," and they remain a reference point for evaluating how faithfully any RDBMS implements the relational model.

Where it breaks down

What are the limits of Codd's Twelve Rules?

No commercial database fully satisfies all twelve rules in practice; a 2007 textbook noted no database system complies with all twelve. Codd himself later said the twelve rules offered only "coarse distinctions" compared to the 333 features of his more detailed RM/V2 model.

What it doesn't say

What are common misconceptions about Codd's Twelve Rules?

The rules are sometimes mistaken for a design pattern or best-practice guide rather than a strict conformance test, and cited as if compliance were binary and achieved, when in practice compliance is partial and debated for every major product.

Is it real?

Is Codd's Twelve Rules real?

Real as a rule of thumb, not as a theorem. Codd's Twelve Rules is rated Heuristic here: dependable enough to plan with, and with no proof behind it.

Rated from two sources. 225 of the 1,116 entries carry this rating. How the scale works.

25 of 69entries in software & systems carry the same rating

The best-known laws are the least likely to rest on measurement.

Origin

Where did Codd's Twelve Rules come from?

Edgar F. Codd outlined the relational ideas in 1970 and 1974, then published the twelve rules explicitly in two Computerworld articles in October 1985.

Known elsewhere as

What is Codd's Twelve Rules called in other languages?

  • Spanish12 reglas de Codd
  • French12 règles de Codd
  • Hindiकोङ के १२ नियम
  • Italian12 regole di Codd
  • Japaneseコッドの12の規則
  • Portuguese12 regras de Codd
  • Russian12 правил Кодда
  • Chinese科德十二定律

8 languages, as recorded on Wikidata. These are names the idea already goes by, not translations we made. The whole index by language.

Sources

Sources & further reading

  1. 1Codd's 12 rules, Wikipedia. — the thirteen rules (0–12), the publication history, and later compliance commentary.secondary
  2. 2"Codd’s Twelve Rules," Redgate Simple Talk. — each rule with real-world SQL compliance notes.secondary

Everything above traces to en.wikipedia.org and red-gate.com: two secondary sources, accounts of the original rather than the original itself, which has not been located for this entry. Nothing is written from memory, and the method is written down. Spot an error or a better source? Suggest a fix.

What we checked

  • 1,116entries in the tomeListed one by one on the browse page.
  • 1,116of them citing a sourceOpen any entry: its sources sit at the foot of the page.
  • 2,489source references in allEach is named, and linked wherever the source is online.