Skip to Content
Database Design for Mere Mortals™: A Hands-On Guide to Relational Database Design, Second Edition
book

Database Design for Mere Mortals™: A Hands-On Guide to Relational Database Design, Second Edition

by Michael J. Hernandez
March 2003
Beginner
672 pages
14h
English
Addison-Wesley Professional
Content preview from Database Design for Mere Mortals™: A Hands-On Guide to Relational Database Design, Second Edition

Elements of a Primary Key

  • It cannot be a multipart field.

  • It must contain unique values.

  • It cannot contain null values.

  • Its value cannot cause a breach of the organization's security or privacy rules.

  • Its value is not optional in whole or in part.

  • It comprises a minimum number of fields necessary to define uniqueness.

  • Its values must uniquely and exclusively identify each record in the table.

  • Its value must exclusively identify the value of each field within a given record.

  • Its value can be modified only in rare or extreme cases.

Rules for Establishing a Primary Key

  • Each table must have one—and only one—primary key.

  • Each primary key within the database must be unique—no two tables should have the same primary key unless ...

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

Database Design for Mere Mortals®: A Hands-on Guide to Relational Database Design, Third Edition

Database Design for Mere Mortals®: A Hands-on Guide to Relational Database Design, Third Edition

Michael J. Hernandez

Publisher Resources

ISBN: 0201752840Purchase book