search
Log In
1 vote
430 views

A file is organized so that the ordering of data record is same as or close to the ordering of data block in some index. Then that index is called:-

  1. Dense
  2. Sparse.
  3. Clustered
  4. Unclustered
in Databases
edited by
430 views
0
Please answer it anybody.

3 Answers

4 votes
 
Best answer

Answer : C

A Clustered index is a special type of index that reorders the way records in the table are physically stored. Therefore table can have only one clustered index. With a clustered index the rows are stored physically on the disk in the same order as the index.  You can have only one clustered index per table because this defines how the data is physically arranged. A clustered index means you are telling the database to store close values actually close to one another on the disk. This has the benefit of rapid scan / retrieval of records falling into some range of clustered index values.

A clustered index created on any key column(s)  will enforce an ordering on the rows of table. All the rows will be stored in sorted manner on the key column used to create the clustered index.

Say You want to make an Index on some Ordered field then you can make either Sparse or Dense Index. No problem. We can Always make Dense index for any field(s).


selected by
0
Yes sir but answer given by made easy is sparse indexing :(
0
Sparse index could be the second choice for the answer because we make Sparse index for Ordered field only. But, Clustered index seems to be the best choice as it is defined in this way only. What is given in the Question is the definition of Clustered index.
0 votes
  • Option a is right . It is a defination of dense .
0
Sir in made easy they have given sparse as the answer
0
Sir one more thing why its not clustered index because in clustered index the order of index record blocks is in the order of records in database. right ?
0

it is not a sparse indexing.i think answer should be wrong. 

http://www.cs.sfu.ca/CourseCentral/354/zaiane/material/notes/Chapter11/node5.html

0
Sir why its not Clustered Indexing ???

because in clustered index the order of index record blocks is in the order of records in database. right ?
0

because in clustered index the order of index record blocks is in the order of records in database. right ?

Right. 

0 votes

in my point of view, { Dense, Sparse } and { key, non-key } both are different sets 

we use

1) key + file is ordered by key ===> uses Sparse Index ===> Primary Index

2) non-key+ file is ordered by non-key ===> uses Sparse Index ===> Clustered Index

3) non-key+ file is not ordered by non-key ===> uses Dense Index ===> Non-Clustered Index

4) key+ file is not ordered by key ===> uses Dense Index ===> Secondary Index


 ordering of data record is same as or close to the ordering of data block in some index it can be primary index or clustered index

Related questions

2 votes
1 answer
1
566 views
The minimum number of nodes (both leaf and non-leaf) of $B^{+}$ tree index required for storing $5500$ keys and order of $B^{+}$ tree is $8$________________(order is max pointers a node can have) See here first level should be divide by $7$ $2nd$ levelshould divide by ... each $7$ pointer of 1st level has $8$ pointer in 2nd level. Am I missing something?? But in ans they divided by only $8$ :(
asked May 17, 2019 in Databases srestha 566 views
2 votes
1 answer
2
360 views
Consider the following statement below: $A)$ A clustered index may be either sparse or dense. $B)$ Every $B^{+}$ tree index is dense. Which of the above statement is true? Is clustering Index can be dense. Dense means non-ordering field, but clustering field should be ordering field right??
asked May 13, 2019 in Databases srestha 360 views
2 votes
0 answers
3
0 votes
1 answer
4
311 views
among primary index, secondary index, clustered index which index are dense or sparse or both?
asked Jan 22, 2019 in Databases Rahul_Rathod_ 311 views
...