CS FundamentalsHardGATE CS · PSU (ISRO/BARC)
R(A, B) = {(5, 2), (8, 1), (8, 2), (11, 1), (14, 2)}. What does π_A(R) − π_{R1.A}(σ_{R1.A < R2.A}(ρ_{R1}(R) × ρ_{R2}(R))) return?
- A. {5}
- B. {14}
- C. {5, 8, 11}
- D. {8, 11, 14}
Correct answer: B. {14}
The subtracted part collects every A value that is smaller than some other A value; what remains is the value with no larger value, i.e. the maximum, 14.
More DBMS and SQL questions
- Assertion (A): A schedule can be conflict serializable and still not be recoverable. Reason (R): Serializability concerns the order of…
- How many of these statements about two-phase locking are correct? 1. Basic 2PL guarantees conflict serializability. 2. Basic 2PL prevents…
- Table Route(src, dst, cost) rows: ('A', 'B', 5), ('B', 'C', 4), ('A', 'C', 12), ('C', 'D', 3), ('B', 'D', 9), ('D', 'A', 2). What does…
- A file of 1000 blocks is sorted by external merge sort with M = 11 buffer blocks (sorted runs of M blocks are created in pass 0, then (M −…
- The system crashes after the last record of this log (immediate database modification; <Ti, X> denotes an update with old and new values…
- T1 has 3 operations, T2 has 2 and T3 has 2. How many concurrent schedules (interleavings that keep each transaction's own order) exist…