CS FundamentalsHardGATE CS · PSU (ISRO/BARC)
R(A, B) = {(3, 2), (5, 2), (8, 1), (11, 1), (14, 2)}. What does π_A(R) − π_{R1.A}(σ_{R1.A > R2.A}(ρ_{R1}(R) × ρ_{R2}(R))) return?
- A. {14}
- B. {3, 5, 8, 11}
- C. {3}
- D. {5, 8, 11, 14}
Correct answer: C. {3}
The subtracted part collects every A value that is larger than some other A value; what remains is the value with no smaller value, i.e. the minimum, 3.
More DBMS and SQL questions
- Table Score(name, pts) rows: ('a', 90), ('b', 85), ('c', 90), ('d', 70), ('e', 85), ('f', 60). What does this query return? sql SELECT…
- The system crashes after the last record of this log (immediate database modification; <Ti, X> denotes an update with old and new values…
- Classify the schedule R3(A), W2(A), W3(B), R2(B), W3(A), W1(A), R1(B), W1(B).
- A multilevel index is built over a first level of 40,000 index entries; every index block holds 34 entries (fan-out 34), and levels are…
- Why does a B+ tree usually have a smaller height than a B-tree built on the same key with the same block size?
- A multilevel index is built over a first level of 1,000,000 index entries; every index block holds 100 entries (fan-out 100), and levels…