CS FundamentalsHardGATE CS · Product placement
R(A, B) = {(a1, b2), (a1, b3), (a2, b2), (a2, b3), (a3, b1), (a3, b3), (a4, b1), (a4, b2), (a4, b3)} and S(B) = {b1, b2}. What is R ÷ S?
- A. {a1, a2, a3, a4}
- B. ∅
- C. {a1, a2, a3}
- D. {a4}
Correct answer: D. {a4}
R ÷ S returns the A values paired with EVERY B in S (b1, b2). The answer is {a4}; values paired with just some of them belong to the 'any' (semi-join) answer.
More DBMS and SQL questions
- Classify the schedule R3(A), R3(B), W1(A), R1(A), C3, R2(A), C1, W2(B), W2(A), C2 (Ci = commit of Ti) by the strongest property it…
- Consider the schedule W1(A), R1(B), W2(A), R1(A), R3(B), W3(A), R2(A). Which statement is correct?
- In multiple-granularity locking, transaction T1 holds an SIX lock on a table. Which lock request by another transaction on the same table…
- On R(A, B, C, D, E), F = {D → C, C → AB, E → BC} and G = {BE → AC, CD → B, BD → C}. Which statement is correct? ("F covers G" means every…
- Keys 7, 31, 43, 34, 16, 26, 39, 38, 29, 44 are inserted in this order into an empty B+ tree where a node holds at most 3 keys; an…
- Table Acct(no, branch, bal) rows: (101, 'Agra', 500), (102, 'Agra', 1500), (103, 'Bhopal', 700), (104, 'Bhopal', 700), (105, 'Cuttack'…