Podcast
Questions and Answers
What is a primary key in a relational database?
What is a primary key in a relational database?
- A field that is not necessary for database operations
- A field that stores non-unique data
- A field that is duplicated in multiple tables
- A field that is unique for each entity (correct)
What is the purpose of a foreign key in a relational database?
What is the purpose of a foreign key in a relational database?
- To uniquely identify each record in a table
- To duplicate data in different tables
- To create a relationship between two tables (correct)
- To store non-unique data
What is the advantage of using primary keys in a relational database?
What is the advantage of using primary keys in a relational database?
- Make data retrieval slower
- Not necessary for database operations
- Used to join tables and ensure data integrity (correct)
- Increase redundancy in the database
What is the purpose of an entity in a relational database?
What is the purpose of an entity in a relational database?
What is the purpose of a database schema?
What is the purpose of a database schema?