CS FundamentalsModerateGATE CS · PSU (ISRO/BARC)
Which set of relational algebra operators is a complete (minimal) basis from which the others can be expressed?
- A. Projection, natural join, set difference and division
- B. Selection, projection, union, set difference, Cartesian product and rename
- C. Selection, projection, union, intersection and Cartesian product
- D. Selection, projection, natural join, intersection and division
Correct answer: B. Selection, projection, union, set difference, Cartesian product and rename
Selection, projection, union, set difference, Cartesian product and rename are fundamental; ∩ = R − (R − S), ⋈ is σ over ×, and ÷ is built from π, × and −.
More DBMS and SQL questions
- A B-tree (not B+ tree) stores a record pointer with every key in every node. With 1024-byte blocks, 9-byte keys, 6-byte tree pointers and…
- Two transactions each read X = 100. T1 sets X = X − 30 and commits; then T2 sets X = X + 50 and commits. The final value is 150. Which…
- Classify the schedule R2(B), W1(A), W2(A), W3(A), R1(B), W1(B), R3(A), R3(B).
- Under basic two-phase locking, a conflict-serializable schedule is equivalent to the serial schedule that orders transactions by their:
- A weak entity set Dependent (partial key dname) is owned by Employee (key eid) through the identifying relationship HasDep. Which table…
- R(A, B, C, D, E, F) has functional dependencies B → C, AF → E, AC → E, CE → A. How many prime attributes does R have?