DB HW3
DB HW3
Sign:
Answers:
The schema R is in BCNF if for every non trivial FDs, the left side is a super key.
Here, the first FD, fid → name rank office email deptname have the fid in the left side
and it is super key. This FD satisfies BCNF.
For second and third FD, office → fid and email → fid: If office and email individually
determines fid and fid itself is a candidate key, then that
Means office and email are candidate keys/super keys as well. Hence the second and
third FDs contain super keys on the left side.
Therefore, the schema Faculty is in BCNF.
FD2: sid,classid→ngrade
● sid, classid is a superkey.
● This FD also satisfies 3NF because X is a superkey.
FD3: ngrade→lgrade
3.
a) {A → BC, BD → E} |= {AD → E}
b) {AB → AC, B → A} |= {B → C}
Using the B →AB and AB →C, we apply IR-3 to get B →C. Hence proved!