Professional Documents
Culture Documents
Codd's Twelve Rules: Rules That Make A RDBMS
Codd's Twelve Rules: Rules That Make A RDBMS
Home Page
Title Page
JJ II
J I
Page 1 of 15
Go Back
Full Screen
Close
Quit
Codd’s Rules
• 1985 Home Page
Title Page
• Proposed to test DBMSs for confirmation to concept
JJ II
of Codd’s Relational model
J I
• Hardly any commercial product follows all Page 2 of 15
Full Screen
Close
Quit
Rule Zero Home Page
Title Page
• For a system to qualify as an RDBMS it must be able
JJ II
to manage its databases entirely through its Relational
J I
capabilities Page 3 of 15
Full Screen
Close
Quit
Rule 1: Information Rule Home Page
Title Page
Full Screen
Close
Quit
Rule 2: Guaranteed Access Home Page
JJ II
accesible by : TableName + Primary Key (Row) +
J I
Attribute (Column)
Page 5 of 15
Full Screen
Close
Quit
Rule3: Systematic treatment of
NULL
Home Page
• NULLs may mean: Missing data, Not applicable, No Title Page
value JJ II
Close
Quit
Rule4: Active On-Line Catalog
• Database dictionary (Catalog) to have description of Home Page
the Database Title Page
database J I
Page 7 of 15
• The same query language to be used on catalog as on Go Back
Close
Quit
Rule5: Powerful language
• One well defined language to provide all manners of Home Page
Title Page
access to data
JJ II
• Example: SQL J I
Go Back
except a SQL Interface, then a violation
Full Screen
Close
Quit
Rule6: View Updation Rule
• All views that are theoretically updatable should be
updatable
• View = ”Virtual table”, temporarily derived from base
tables Home Page
JJ II
changes to view should be reflected in base tables
J I
• Not updatable: View does not have NOT-NULL at- Page 9 of 15
Full Screen
• Problems with computed fields in view e.g. Close
Total Income = White income + Black income Quit
Rule7: Relational level opera-
tions Home Page
Title Page
Go Back
should be supported
Full Screen
Close
Quit
Rule8: Physical Data Indepen-
dence
Home Page
• The physical storage of data should not matter to the Title Page
system JJ II
J I
• If say, some file supporting table was renamed or Page 11 of 15
Close
Quit
Rule9: Logical Data Indepen-
dence
• If there is change in the logical structure (table struc-
Home Page
tures) of the database the user view of the data should Title Page
not change JJ II
two tables, a new view should give result as the join Page 12 of 15
Full Screen
• Difficult rule to satisfy Close
Quit
Rule10: Integrity Independence
• The database should be able to enforce its own in-
tegrity rather than using other programs Home Page
Close
Quit
Rule11: Distribution Indepen-
dence
Home Page
Close
Quit
Rule12: Nonsubversion Rule
• If low level access is allowed to a system it should not
be able to subvert or bypass integrity rules to change Home Page
JJ II
• This may be achieved by some sort of locking or en- J I
cryption Page 15 of 15
Close
Quit