CS FundamentalsModerateGATE CS · Product placement
R(A, B) has 8 tuples. What is the number of tuples in R ⋈ R (natural join of R with itself), and in R × ρ_{S(C, D)}(R)?
- A. 64 and 64
- B. 8 and 64
- C. 8 and 8
- D. 16 and 64
Correct answer: B. 8 and 64
Joining R with itself on all attributes matches each tuple only with itself, giving R back (8). Renaming the attributes leaves no common attribute, so the join becomes a Cartesian product: 64.
More DBMS and SQL questions
- R(A, B, C, D, E, F) has FDs B → AC, E → F, EF → BD, F → E. Each option is a relation schema obtained by projecting R, with the…
- On R(A, B, C, D, E), F = {D → A, B → AE} and G = {BE → A, D → A, B → E}. Which statement is correct? ("F covers G" means every FD of G is…
- Table Sale(id, rep, region, amt) rows: (1, 'Ira', 'N', 100), (2, 'Jai', 'S', 250), (3, 'Ira', 'S', NULL), (4, 'Kim', 'N', 300), (5, 'Jai'…
- A multilevel index is built over a first level of 250,000 index entries; every index block holds 68 entries (fan-out 68), and levels are…
- TS(T1) = 10, TS(T2) = 25, TS(T3) = 20; all read/write timestamps start at 0. Under basic timestamp ordering (no Thomas write rule), which…
- Classify the schedule R3(B), R3(A), W3(A), W1(A), R2(B), W1(B), W2(A), R1(B).