-
Consider a relational table r with sufficient number of records, having attributes A1, A2,... An, let 1 ≤ p ≤ n . Two queries Q1 and Q2 are given below.
Q1 = πA1 ...............Ap where c is constant .
Q2 = πA1 ...............Ap (σc1 ≤ Ap ≤ c2 ) and c1 and c2 are constants.
Which of the following statements is true?
(a) Ordered indexing will always outperform hashing for both queries
(b) Hashing will always outperform ordered indexing for both queries
-
- Only a
- Only b
- Both a and b
- None of the above
Correct Option: C
NA