Podcast
Questions and Answers
What is the primary purpose of keys in relational databases?
What is the primary purpose of keys in relational databases?
- To uniquely distinguish tuples within a relation based on their attributes (correct)
- To aggregate data within a relation
- To sort tuples within a relation
- To perform mathematical operations on attribute values
Why is 'name' not considered a super key in the given context?
Why is 'name' not considered a super key in the given context?
- Because 'name' is a primary key
- Because 'name' is not unique across tuples (correct)
- Because 'name' is a foreign key
- Because 'name' is an extraneous attribute
What defines a candidate key in a relational database?
What defines a candidate key in a relational database?
- A candidate key is any attribute in a relation
- A candidate key is a super key that contains extraneous attributes
- A candidate key is the primary key of a relation
- A candidate key is a minimal super key (correct)
Why does the combination of {ID, name} not form a candidate key for the 'instructor' relation?
Why does the combination of {ID, name} not form a candidate key for the 'instructor' relation?
Which attribute combination is considered a super key for the 'instructor' relation?
Which attribute combination is considered a super key for the 'instructor' relation?
What attribute should be chosen as a primary key?
What attribute should be chosen as a primary key?
In which scenario should a composite key be chosen over a single simple key for a primary key?
In which scenario should a composite key be chosen over a single simple key for a primary key?
What is the relationship between a foreign key and a primary key?
What is the relationship between a foreign key and a primary key?
What does a referential integrity constraint require?
What does a referential integrity constraint require?
What does a foreign key constraint enforce?
What does a foreign key constraint enforce?