I am working on a normalization problem and am hung up on whether the given relation is in 2NF form. The relation is given as R(A,B,C,D,E,F,G) and the set of FD's is given as:
{ A->B, B->AC, F->ACDE, ADE->FG }.
The candidate keys that I have found are {F, ADE, BDE, ACDE}. However I am a bit confused if ACDE is allowed to be a candidate key since from my understanding, in order for an attribute to appear in a key, it must either appear on the LHS or on BOTH the LHS and RHS of a functional dependency. If ACDE is a legal key, then would it violate 2NF since ADE is a subset of ACDE and can still generate the non-prime attribute G?