CS FundamentalsHardGATE CS · PSU (ISRO/BARC)
R(A, B) = {(2, 1), (3, 1), (3, 3), (3, 4), (4, 4)} and S(B, C) = {(1, 5), (2, 5), (2, 7), (3, 7)}. How many tuples are in R ⟕ S (left outer join) and in R ⟗ S (full outer join)?
- A. 3 and 5
- B. 5 and 9
- C. 5 and 7
- D. 5 and 8
Correct answer: C. 5 and 7
R ⋈ S has 3 tuples; 2 R tuple(s) find no partner and are padded with NULL, giving 5. The full outer join also keeps 2 unmatched S tuple(s): 7.
More DBMS and SQL questions
- A relation has 100,000 tuples and a selection σ{city='Pune'} with an estimated selectivity of 2%. Each block holds 50 tuples and the…
- Classify the schedule W1(A), R2(A), R1(B), R1(A), C1, R2(B), W2(A), C2 (Ci = commit of Ti) by the strongest property it satisfies.
- R(A, B, C, D, E, F) has the set of functional dependencies Σ = {CE → B, A → F, BE → D, AF → B}. Which of the following FDs is NOT in Σ⁺…
- For the schedule W4(C), W1(A), R4(B), R2(A), R3(C), W3(A), R2(B), R1(B), how many serial schedules of T1–T4 are conflict-equivalent to it?
- Extendible hashing uses the LOWEST-order bits of a key's binary value, bucket capacity 2, and starts with global depth 0 and one empty…
- Which statement about shadow paging is correct?