CS FundamentalsHardGATE CS · PSU (ISRO/BARC)
R(A, B) = {(1, 4), (2, 1), (2, 4), (3, 2), (3, 3), (4, 4)} and S(B, C) = {(1, 6), (1, 7), (2, 5), (2, 6)}. What is π_A(R) − π_A(R ⋈ S)?
- A. ∅
- B. {1, 2, 3, 4}
- C. {1, 4}
- D. {2, 3}
Correct answer: C. {1, 4}
This keeps A values ALL of whose tuples fail to join. An A value with at least one joining B is removed entirely, so the answer is {1, 4}, not merely the A values of non-joining tuples.
More DBMS and SQL questions
- Which view is generally updatable in standard SQL (an UPDATE through it maps to exactly one base row)?
- A B+ tree has at most 7 children per internal node and at most 6 keys per leaf. A non-root internal node must have at least ⌈7/2⌉…
- Consider the schedule W2(A), W2(B), R3(A), R3(B), W1(A), R1(B). Which statement is correct?
- R(A, B, C, D) has functional dependencies AC → D, A → D, CD → A, C → A, AB → CD. What is the highest normal form R satisfies?
- 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…
- Table Staff(id, name, dept, pay, boss) rows: (1, 'Anu', 'Ops', 40, NULL), (2, 'Bala', 'Ops', 55, 1), (3, 'Chitra', 'Tech', 70, 1), (4…