Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
CHAPTER 7 What are keys? More than one John Doe Which is the right Customer? Recall by the key There is a lot of data out there, but how do you sift through it all to find what you're looking for? That's where keys come in. Keys allow us to efficiently retrieve data, as well as navigate from one physical table to another. This chapter defines keys and distinguishes between the terms candidate, primary, and alternate keys. Surrogate keys and foreign keys and their importance are also explained. Key Explained Data elements identify, describe, or measure the entity instances in which they reside. There is often a need to find specific entity instances using one or more data elements. Those data element(s) that allow us to find specific entity instances are known as keys. The Library of Congress assigns an ISBN (International Standard Book Number) to every book. When the ISBN for this book, 9780977140060, is entered into many search engines and database systems, the book entity instance Data Modeling Made Simple will be returned (try it!). A particular tax identifier can help us find an organization. The key Account Code can help us find a particular account. Candidate Key Explained A candidate key is one or more data elements that uniquely identify an entity instance. Sometimes a single data element identifies an entity instance, such as ISBN for a book, or Account Code for an account. Sometimes it takes more than one data element to uniquely identify an entity instance. For example, both a Promotion Code and Promotion Start Date are necessary to 81