CS FundamentalsModerateGATE CS (PYQ pattern)
R(A, B, C, D, E, F) has the functional dependencies BC → D, F → D, F → C, C → D, E → C, DC → E. Counting only the listed dependencies, how many of them are partial dependencies that violate 2NF (a non-prime attribute depending on a proper subset of a candidate key)?
- A. 2
- B. 3
- C. 1
- D. 4
Correct answer: A. 2
The only candidate key is ABF; prime attributes are ABF. The listed FDs whose left side is a proper subset of the key and whose right side is non-prime are ['F→D', 'F→C'].
More DBMS and SQL questions
- R(A, B, C, D, E, F) has the functional dependencies B → E, E → D, B → E, EB → A, A → F. Decompose R into BCNF by this procedure: while…
- R(A, B, C, D, E, F) has FDs A → B, B → C, C → A, AD → E, E → F. How many candidate keys does R have?
- A relation R(A, B, C) holds the tuples (1,x,10), (1,x,20), (1,y,10), (1,y,20), (2,x,10), (2,y,20). Which statement is correct?
- R(A, B, C, D, E) has FDs A → B, C → D, BD → E. How many of the following decompositions are lossless-join? (1) (AB) , (CD) , (ACE) (2)…
- S1(s): a, b, c, d. C1(c): x, y. T1(s, c): (a,x), (a,y), (b,x), (c,y), (c,x), (c,y). How many rows does SELECT s FROM S1 WHERE NOT EXISTS…
- Tables T(x): 1, 2, 3 and U(y) is EMPTY. In standard SQL, what does SELECT COUNT() FROM T WHERE x > ALL (SELECT y FROM U) return, and what…