DBMS · Question 16 · Easy
A column in the Enrollment table that refers to the primary key of the Student table is called a:
- Candidate key
- Composite key
- Foreign key
- Surrogate key
Answer and explanation
Answer: C. Foreign key
Explanation: A foreign key holds values that must match the primary key (or a unique key) of another table, which is how referential integrity between the two tables is enforced.
Previous: Relation R(A, B, C) has the functional dependencies AB → C and C → B. Which is… · Next: Which ACID property guarantees that once a transaction has committed, its…
Practise dbms
Try a fresh set of dbms questions with an explanation after every answer, free and without signing up: DBMS practice. Or sit a full placement mock test.
More dbms questions
- Relation R(A, B, C) has the single functional dependency B → C. It is…
- Consider the schedule S: r1(X), w2(X), w1(X), where ri and wi are read and…
- Relation R(A, B, C) has the functional dependencies AB → C and C → B. Which is…
- Which ACID property guarantees that once a transaction has committed, its…
- In a relational database, what is a view?
- In an ER diagram (Chen notation), how is a multivalued attribute such as a…
- Which data model stores data as tables (relations) made of rows and columns?
- Relation R(A, B, C, D, E) has the functional dependencies A → B, BC → D and D…
- A one-to-many relationship 'works in' links Department (one) to Employee…
- Relation R has 3 attributes and 5 tuples, and relation S has 4 attributes and…
More technical & programming practice
SQL · Operating Systems · Computer Networks · Software Engineering · Cloud & DevOps · GenAI Basics · Pseudo-code · C Programming
LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge