CS FundamentalsHardGATE CS
R(A, B, C, D) has functional dependencies AB → C, C → D and D → B. Which statement is correct?
- A. R is in BCNF because every attribute is prime
- B. R is in 2NF but not 3NF because C → D is transitive
- C. R is in 3NF but not BCNF
- D. R is only in 1NF because D → B is partial
Correct answer: C. R is in 3NF but not BCNF
The keys are AB, AC and AD, so every attribute is prime and 3NF holds automatically. C → D has a determinant that is not a superkey, so BCNF fails; being prime does not rescue BCNF.
More DBMS and SQL questions
- R(A, B, C, D, E) has functional dependencies AB → CD, D → A and C → E. What is the highest normal form R satisfies?
- R(A, B, C, D, E, F, G) has functional dependencies A → B, BC → D, D → E, E → C and F → G. How many candidate keys does R have?
- R(A, B, C, D, E) has functional dependencies A → BC, CD → E, B → D and E → A. What are all the candidate keys of R?
- Which of these is a minimal (canonical) cover of F = {AB → C, A → D, D → C, BD → E, AB → E}?
- R(A, B, C, D, E, F) has functional dependencies AB → CDEF and CD → AB. How many superkeys does R have?
- R(A, B, C, D, E) has functional dependencies A → B, BC → E and ED → A. It is decomposed into R1(A, B, C) and R2(A, C, D, E). Which…