CS FundamentalsModerateGATE CS · Product placement
Assertion (A): Every relation schema with exactly two attributes is in BCNF. Reason (R): For R(X, Y), any non-trivial FD has a single attribute on its left side, and that attribute then determines the whole relation.
- A. Both A and R are true, and R is the correct explanation of A
- B. A is false, but R is true
- C. Both A and R are true, but R is not the correct explanation of A
- D. A is true, but R is false
Correct answer: A. Both A and R are true, and R is the correct explanation of A
With two attributes the only non-trivial FDs are X → Y and Y → X; whichever holds makes its LHS a superkey of R(X, Y), so BCNF can never be violated. R gives exactly that reason.
More DBMS and SQL questions
- R(A, B, C, D, E) has functional dependencies CE → BD, DE → A, BD → E. Which of the following is the complete set of candidate keys of R?
- Table Node(id, parent) rows: (1, NULL), (2, 1), (3, 1), (4, 2), (5, 2), (6, 4), (7, 3). What does this query return? sql WITH RECURSIVE…
- R(A, B, C, D, E) has functional dependencies AC → BD, A → CD, C → D, D → A. Which of the following is the complete set of candidate keys…
- Σ = {C → AE, E → B, AE → C, D → C}. Consider the FD AE → C while computing a canonical cover. Which statement about extraneous attributes…
- Which statement about a FOREIGN KEY constraint in standard SQL is correct?
- Table Score(name, pts) rows: ('a', 90), ('b', 85), ('c', 90), ('d', 70), ('e', 85), ('f', 60). What does this query return? sql SELECT…