CS FundamentalsHardGATE
A relation R(A, B, C) has the single functional dependency A → B (C is independent, with no FD at all involving it, and no candidate key other than AC). Is R in BCNF?
- A. It cannot be determined without knowing C's values
- B. Yes, because B is a single attribute
- C. No; A → B violates BCNF because A is not a superkey
- D. Yes; A → B is a trivial dependency so it does not count against BCNF
Correct answer: C. No; A → B violates BCNF because A is not a superkey
The only candidate key is AC, since A alone does not determine C and there is no other dependency. A → B has A as its determinant, which is NOT a superkey (it is missing C), so this FD directly violates BCNF — R should be decomposed into R1(A, B) and R2(A, C) to reach BCNF.
More DBMS and SQL questions
- A table's clustered index key is UUID-based (a random 128-bit value) rather than a sequential integer. What problem does this commonly…
- After a crash, the analysis phase of ARIES recovery scans the log forward from the last checkpoint to rebuild the transaction table…
- A relation Enrollment(studentid, courseid, semester, grade) has candidate key (studentid, courseid, semester). A functional dependency…
- A poorly designed table stores repeating groups as separate columns: Student(sid, sname, course1, course2, course3). What specific 1NF…
- A relation R(A, B, C, D) decomposes into R1(A, B) and R2(A, C, D). For this decomposition to be DEPENDENCY PRESERVING, what must hold?
- Decomposing R(A, B, C) with FDs A → B and B → C into BCNF can require R1(A, B) and R2(B, C). Is this decomposition dependency-preserving?