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

Refining All Foreign Keys

You now know that a primary key becomes a foreign key when you use it to establish a relationship between a pair of tables in a one-to-one or one-to-many relationship. As with any other key that you've worked with so far, a foreign key must comply with a specific set of elements. These elements are collectively known as the Elements of a Foreign Key.

Elements of a Foreign Key

  • It has the same name as the primary key from which it was copied. You should adhere to this rule unless there is an absolutely compelling reason not to do so. (Review the discussion of the Alias field specification element in Chapter 9. It provides an example of an occasion when you might decide to break this rule.) Consider the relationship ...

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