I am working on another question here and it asks for the candidate keys and the superkeys. I believe I have the correct candidate keys, but if someone could verify that would be great. I am also just having trouble finding superkeys. I don't know if there is a general formula to find them or whatnot.
Here is the question:
Relation Schema: U(A,B,C,D)
FD's:
A-->B
B-->C
C-->D
D-->A
I found the Candidate keys to be: {A},{B},{C},{D}. If someone could verify if this is correct, I would greatly appreciate it. Also if you could let me know how to find the superkeys of this, that would be great. I am not looking directly for the answers, I just want to know if my answer for the candidate keys is correct and how to find the superkeys for this and possibly other questions (if there is a generic way to find them).
Hope someone can help. Will rate best answer once someone helps me figure this out.
Cheers everyone.