CS FundamentalsHardGATE CS · DBMS
Which expression is equivalent to R ÷ S, where R(A, B) and S(B)?
- A. π_A(R) − π_A(R − (π_A(R) × S))
- B. π_A(R ⋈ S)
- C. π_A(R × S) − π_A(R)
- D. π_A(R) − π_A((π_A(R) × S) − R)
Correct answer: D. π_A(R) − π_A((π_A(R) × S) − R)
π_A(R) × S lists every pair each A value would need; subtracting R leaves the missing pairs, and their A values are exactly those that fail; removing them from π_A(R) gives the quotient.
More DBMS and SQL questions
- Which is a correct reason why testing a schedule for VIEW serializability is rarely done in practice?
- 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'…
- Which statement about ARIES recovery is correct?
- Table Staff(id, name, dept, pay, boss) rows: (1, 'Anu', 'Ops', 40, NULL), (2, 'Bala', 'Ops', 55, 1), (3, 'Chitra', 'Tech', 70, 1), (4…
- R(A, B, C, D, E, F) has functional dependencies F → ABCD, BD → A. What is the highest normal form R satisfies?
- Table Staff(id, name, dept, pay, boss) rows: (1, 'Anu', 'Ops', 40, NULL), (2, 'Bala', 'Ops', 55, 1), (3, 'Chitra', 'Tech', 70, 1), (4…