I need help finding the candidate keys from the given relation:
R (A,B,C,D,E) with FD:
A -> BE
B -> BE
B -> D
STEPS:
- I know all the attributes can identify themselves so: A,B,C,D,E -> {ABCDE}
- Now I know A -> BE, so i can cross out BE and get this: ACD -> {ABCDE}
- The prime attributes are (A,C,D)
- D would now be replaced by B giving me my other candidate key of (ABC)
I have the answer has ACD and ABC but apparently, it's AC. What am I doing wrong?