简体   繁体   中英

What are the candidate keys in the below relation

R(A,B,C,D,E) Functional Dependencies = {AC->E,B->D,E->A}

I know ABC is a candidate key.Can BC be a candidate key too?

The definition of "candidate key" is a superkey that does not contain another superkey. So a candidate key does not contain another candidate key.

I could tell that BC is not a candidate key. For (ABC)+, you could get the attribute D and E through the functional dependency and thus you get a key by involving all the attributes.

However, for (BC)+, you could only get D, you cannot get A or E. Thus, BC is not a candidate key.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM