CS FundamentalsVery hardGATE CS (PYQ pattern)
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 some relation r has a violating FD, take the first listed FD whose left side X lies in r and for which Y = (X+ ∩ r) − X is non-empty while X+ ∩ r is not all of r, and split r into (X ∪ Y) and (r − Y). How many relations result?
- A. 5
- B. 4
- C. 3
- D. 6
Correct answer: B. 4
Repeated splitting gives the relations ['BC', 'DE', 'AF', 'ABE'].
More DBMS and SQL questions
- 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…
- Table V(id, v): (1,40), (2,10), (3,40), (4,30), (5,20), (6,30). What are the ids returned, in order, by SELECT id FROM V ORDER BY v DESC…