0
0
DBMS Theoryknowledge~20 mins

Candidate key finding using closure in DBMS Theory - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Candidate Key Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Closure in Candidate Key Identification

Given a set of attributes R = {A, B, C, D} and functional dependencies F = {A → B, B → C}, what is the closure of attribute A (denoted as A⁺)?

A{A, B}
B{A, B, C}
C{A, C}
D{A, B, C, D}
Attempts:
2 left
💡 Hint

Start with attribute A and add attributes that can be functionally determined step by step.

🔍 Analysis
intermediate
2:00remaining
Determining Candidate Key Using Closure

Consider relation R = {A, B, C, D} with functional dependencies F = {A → B, B → C, C → D}. Which of the following is a candidate key?

AC
BD
CB
DA
Attempts:
2 left
💡 Hint

Find the closure of each attribute and check which covers all attributes in R.

🧠 Conceptual
advanced
2:00remaining
Effect of Adding Functional Dependencies on Candidate Keys

Given relation R = {A, B, C} and functional dependencies F = {A → B}, which of the following changes will make A no longer a candidate key?

AAdd functional dependency C → A
BAdd functional dependency B → A
CAdd functional dependency B → C
DAdd functional dependency C → B
Attempts:
2 left
💡 Hint

Consider how the closure of A changes with the new dependency.

Reasoning
advanced
2:00remaining
Minimality Check in Candidate Keys

Relation R = {A, B, C, D} has functional dependencies F = {A → B, B → C, A → D}. Which of the following sets is a candidate key?

A{B, D}
B{B, C}
C{A}
D{A, B}
Attempts:
2 left
💡 Hint

Check closure of each set and verify minimality.

Comparison
expert
2:00remaining
Comparing Candidate Keys Using Closure

Given relation R = {A, B, C, D, E} and functional dependencies F = {A → B, BC → D, D → E}, which of the following is a candidate key?

A{A, C}
B{A, B}
C{B, C}
D{A, B, C}
Attempts:
2 left
💡 Hint

Calculate closure of each set and check which covers all attributes.