in Databases
10,153 views
2 votes
2 votes

Which of the following is dense index?

  1. Primary index
  2. Clustered index
  3. Secondary index
  4. Secondary non-key index
in Databases
by
10.2k views

1 comment

Secondary index is dense index, option C is correct. Whereas, secondary non key index may or may not be dense index.
0
0

2 Answers

4 votes
4 votes
Best answer
A. Primary index is maintain for the anchor value of block i,e one key value per block maintained in Index file.

B. Clustering index is basically mixed sort of Indexing i,e Dense as it is maintained for  unique value (key)  and Sparse as it is not maintained for every value.

C. Index is maintained for every key value so dense index.

ans. C
selected by

10 Comments

why not option d????
0
0
Non-key means :- There will be repetition of values, so we will maintain index only for one of the repeated values. Since we left some of the values, hence not dense
5
5

both c d are correct source navathe

8
8
Sonam mam can we challenge isro key??I selected d
1
1
yes
2
2
But mam here it is written dense  or  nondense

So will take isro take it for Grant?
0
0
edited by
Yes, Sankha.

Because there might be situation when it is sparse. for example:-

Empid       -Dependent id

1                    A

1                    B

2                    c

3                     D

Now secondary index when made on Empid, then we will not maintain two entry for 1. There will be only one entry. Since we left some repeated values hence sparse
0
0
Index entry will be created for every search key value

Your example is clustered index
0
0
0
0
edited by
0
0
3 votes
3 votes

Ref: Navathe

Answer:

Related questions