Types of Database Keys
- 21Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
21 questions
- 1The_____of a table is a column or combination of columns that uniquely identifies each row and cannot contain null values.
Hint
Think about the most fundamental unique identifier for a table.
Answer
primary key
- 2A_____is any column or combination of columns that could serve as the primary key, meaning it uniquely identifies rows and is irreducible.
Hint
These are the 'candidates' to become the primary key.
Answer
candidate key
- 3A_____is a set of attributes that contains a candidate key plus potentially additional attributes that are not necessary for uniqueness.
Hint
Consider a key that is 'super' because it has extra attributes beyond what's needed.
Answer
super key
- 4A candidate key that is not chosen as the primary key is called an_____.
Hint
It's an alternative to the primary key among the candidates.
Answer
alternate key
- 5A key that consists of a single attribute is called a_____.
Hint
This key is not composite.
Answer
simple key
- 6A key that consists of more than one attribute is called a_____.
Hint
This key involves multiple columns.
Answer
composite key
- 7A_____key is an artificial key added to a table that has no real-world meaning; its values are only meaningful within the database.
Hint
Think of a stand-in or substitute.
Answer
surrogate
- 8A_____key is a key whose values have real-world meaning, such as a state code or social security number.
Hint
These are 'naturally' occurring identifiers in the real world.
Answer
natural
- 9A_____key is a natural key composed of multiple meaningful parts, such as a product code that encodes category and subcategory.
Hint
This key is 'smart' because its parts carry meaning.
Answer
intelligent
- 10A_____key is a specific type of composite key where every attribute in the key is a foreign key to another table.
Hint
This term is often used for keys in junction tables.
Answer
compound
- 11When a robust real-world unique identifier exists, a_____key is often a good choice for the primary key.
Hint
Use something already in the real world.
Answer
natural
- 12When no suitable natural key exists, a_____key is typically a sensible choice for the primary key.
Hint
Invent an artificial identifier.
Answer
surrogate
- 13A surrogate key's values are_____and only have meaning inside the database.
Hint
They don't reflect real-world facts.
Answer
arbitrary
- 14The property of an identifier that ensures its values are unlikely to change over time is called_____.
Hint
Consider if the identifier might change in the future.
Answer
stability
- 15A key is considered_____if it contains only the attributes necessary to ensure uniqueness, with no extra attributes.
Hint
You cannot remove any attribute without losing uniqueness.
Answer
irreducible
- 16A primary key column cannot contain_____values because null is not a value.
Hint
This represents an unknown or missing value.
Answer
null
- 17The state capital attribute is not a candidate key for US states because it lacks_____.
Hint
Capitals can change over time.
Answer
stability
- 18A_____constraint ensures that values in a column must match values in the primary key column of another table.
Hint
It links tables together.
Answer
foreign key
- 19A foreign key constraint ensures_____integrity between two tables.
Hint
It ensures that references are valid.
Answer
referential
- 20When a table has a composite primary key, any foreign key referencing that primary key must also be_____.
Hint
The foreign key must have the same number of attributes.
Answer
composite
- 21To enforce uniqueness of a candidate key that is not the primary key, we can designate it as an_____key (or use a unique constraint).
Hint
It's an alternative to the primary key.
Answer
alternate

Ask anything
We've read this whole study set, so questions about it get the best answers.