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

Establishing Keys for Each Table

Your next task is to establish keys for each table in the database. There are four main types of keys: candidate, primary, foreign, and non-keys. A key's type determines its function within the table.

Candidate Keys

The first type of key you establish for a table is the candidate key, which is a field or set of fields that uniquely identifies a single instance of the table's subject. Each table must have at least one candidate key. You'll eventually examine the table's pool of available candidate keys and designate one of them as the official primary key for the table.

Before you can designate a field as a candidate key, you must make certain it complies with all of the Elements of a Candidate Key. These ...

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