Skip to Main Content
SQL in a Nutshell, 3rd Edition
book

SQL in a Nutshell, 3rd Edition

by Kevin Kline
November 2008
Intermediate to advanced content levelIntermediate to advanced
591 pages
17h 28m
English
O'Reilly Media, Inc.
Content preview from SQL in a Nutshell, 3rd Edition

Codd’s Rules for Relational Database Systems

Codd applied rigorous mathematical theories (primarily set theory) to the management of data, and he compiled a list of criteria a database must meet to be considered relational. At its core, the relational database concept centers around storing data in tables. This concept is now so common as to seem trivial; however, not long ago the goal of designing a system capable of sustaining the relational model was considered a long shot with limited usefulness.

Following are Codd’s Twelve Principles of Relational Databases:

  1. Information is represented logically in tables.

  2. Data must be logically accessible by table, primary key, and column.

  3. Null values must be uniformly treated as “missing information,” not as empty strings, blanks, or zeros.

  4. Metadata (data about the database) must be stored in the database just as regular data is.

  5. A single language must be able to define data, views, integrity constraints, authorization, transactions, and data manipulation.

  6. Views must show the updates of their base tables and vice versa.

  7. A single operation must be available to do each of the following operations: retrieve data, insert data, update data, or delete data.

  8. Batch and end-user operations are logically separate from physical storage and access methods.

  9. Batch and end-user operations can change the database schema without having to recreate it or the applications built upon it.

  10. Integrity constraints must be available and stored in the metadata, not in an application ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Effective SQL: 61 Specific Ways to Write Better SQL, First Edition

Effective SQL: 61 Specific Ways to Write Better SQL, First Edition

John L. Viescas, Douglas J. Steele, Ben G. Clothier
SQL in a Nutshell, 4th Edition

SQL in a Nutshell, 4th Edition

Kevin Kline, Regina O. Obe, Leo S. Hsu

Publisher Resources

ISBN: 9780596155322Errata Page