2.3 Keys and Indexing
Now that we’ve gone through the database components that are responsible for containing data, it’s time to go through the components that are responsible for data identification. Most of the concepts under this umbrella revolve around keys.
The term key may be misleading for some newcomers. Although it may connotate pieces of metal used to unlock doors, it means something different altogether in SQL, so be aware that we don’t use them to unlock database tables or anything like that. Instead, a key is a value that uniquely identifies an entity. For instance, in a school full of students, student number would be the key of each student. Having this key helps the faculty uniquely identify each student and keep their records ...
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.
Read now
Unlock full access