Practice mode DBMS and SQL

Relation R(A, B, C, D, E) has functional dependencies A -> B, B -> C and CD -> E. What is the attribute closure {A}+?

Correct answer B. {A, B, C}

Explanation

Start with {A}. A -> B adds B, and B -> C adds C. CD -> E cannot fire because D is not in the set, and nothing derives D. So {A}+ = {A, B, C}. Adding E is the common slip of applying CD -> E using C alone. Because the closure does not contain every attribute, A by itself is not a key of R.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.