
C = CourseNo, SN = SecNo, OD = OfferingDept, CH = CreditHours, CL = CourseLevel,
I = InstructorSSN, S = Semester, Y = Year, D = Days_Hours, RM = RoomNo,
NS = NoOfStudents
Hence, R = {C, SN, OD, CH, CL, I, S, Y, D, RM, NS}, and the following functional
dependencies hold:
{C} -> {OD, CH, CL}
{C, SN, S, Y} -> {D, RM, NS, I}
{RM, D, S, Y} -> {I, C, SN}
solution:
(a) All attributes of R are in F. Attributes only in LHS: S,Y. Attributes only in RHS:
OD,CH,CL,I,NS. Thus, attributes S and Y must be part of any candidate key, and the
attributes OD,CH,CL,I,NS are not part of any candidate key. We combine S and Y
with the remaining attributes: C, SN, D, RM.
By looking at the LHS of the given FDs,
we notice that {S,Y} is not a candidate key, and no combination of three attributes is
a candidate key. The only sets of attributes that can generate the entire schema are:
{S,Y,C,SN} and {S,Y, RM,D}, which are the candidate keys.why is this so...can anone please elaborate...from the bold....how can we decipher by looking at the LHS of the given fd's that s,y is not a candidate key.......