CS FundamentalsEasyGATE CS (PYQ pattern)
R(A, B) = {(1,a), (1,b), (2,a), (3,c), (4,a), (5,b), (5,c)} and S(B) is EMPTY. Using the standard definition R ÷ S = π_A(R) − π_A((π_A(R) × S) − R), how many tuples does R ÷ S contain?
- A. 0
- B. 5
- C. 7
- D. 1
Correct answer: B. 5
With S empty, π_A(R) × S is empty, so nothing is subtracted and the result is π_A(R) itself, which has 5 distinct A values. (Every A trivially 'has all' of the zero required B values.)
More DBMS and SQL questions
- An ER design has three strong entity sets, one weak entity set (identified through one of them), one multivalued attribute on a strong…
- Which of the following statements about ARIES recovery are correct? I. It follows write-ahead logging: a log record must reach stable…
- Which of the following statements about two-phase locking variants are correct? I. Basic 2PL guarantees conflict-serializable schedules…
- R has 100 pages and S has 50 pages. Block nested-loop join uses 12 buffer pages: 10 for a block of the outer relation, 1 for the inner and…
- R(A, B, C, D, E, F) has the functional dependencies D → E, AD → B, D → E, DA → F, EC → D, ED → C. How many of the listed FDs violate BCNF…
- R(A, B, C, D, E) has the functional dependencies D → A, EA → C, D → C, D → E, BC → A. How many attributes appear in the left sides of a…