914 views
3 votes
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 votes
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 votes
1 votes

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.

Related questions

0 votes
0 votes
0 answers
1
Deepalitrapti asked Aug 9, 2018
279 views
3 votes
3 votes
1 answer
3
akshayaK asked Jan 21, 2019
1,865 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 votes
0 votes
0 answers
4
Mayank Gupta 3 asked Dec 16, 2018
205 views
What is the difference between primary multilevel index and B tree?