2,389 views
3 3 votes

a. a dense index on R.B

b. a sparse index on R.B

c. a dense index on S.B

d.  a sparse index on S.B

2 Answers

2 2 votes

Option (a) A dense index on R.B

Here it is given that R is sorted on attribute A and S is sorted on attribute B. As R is already sorted on attribute A, so it may or may not be sorted with respect to attribute B. Hence secondary indexing(since it may be non-key or candidate key and the file may be unordered w.r.t B) has be present for R where the key field is R.B. As secondary indexing is dense indexing, hence a dense index needs to be formed on the attribute R.B.

1 1 vote

Option D should be a correct answer...  
The concept is in the data file attribute on which the entries are in sorted order use each block anchor as index entry...

Not all entries... If you are forced to store all data file entries then DENSE otherwise SPARSE.

Then Ans is Option D.

Position:
Show:

Related questions

0 0 votes
0 0 answers
580
580 views
Deepalitrapti asked Aug 9, 2018
580 views
3 3 votes
1 1 answer
2.9k
2.9k views
akshayaK asked Jan 21, 2019
2,888 views
Secondary key over key is dense and secondary key over non key is sparseis it correct ?i think it should beSecondary key over non key is dense and secondary key over key ...
0 0 votes
0 0 answers
379
379 views
Mayank Gupta 3 asked Dec 16, 2018
379 views
What is the difference between primary multilevel index and B tree?