11,266 views
7 7 votes
Consider the following statement
(i) Primary index is always sparse
(ii) Secondary index may or may not be dense
Which of the above statement is/are false?

A)Only (i)

B)Only (ii)

C)Both (i) and (ii)

D)None of these

3 Answers

Best answer
11 11 votes
Ans is D

Primary is always sparse. Secondary may be dense if done on a key field and sparse if done on a non-key field.
selected by
2 2 votes
i think option C is correct.

primary index may or may not be sparse.

but Secondary index is always dense.
0 0 votes
D

Secondary  index cant be sparse they have to be dense coz values are scattered among the db file and file is not ordered on search key and primary index can be dense/sparse.
edited by
Position:
Show:

Related questions

1 1 vote
0 0 answers
568
568 views
1 1 vote
0 0 answers
369
369 views
iamHarin asked Jul 22, 2017
369 views
why Multi- level Indexes uses fan out as base of log function
6 6 votes
1 answers 1 answer
5.0k
5.0k views
GateAspirant999 asked Oct 30, 2016
4,972 views
Consider a file of 8192 records. Each record is 16 bytes long and its key field is of size 6 bytes. The file is ordered on a key field, and the file organization is unspa...
0 0 votes
0 0 answers
48
48 views