Difference between Cluster and Non-cluster index?

Answer Posted / indranil

The clustered index is SORTED, and the nonclustered index is
UNSORTED.

For example, we have a pile of birth certificates in City
Hall, and we're going to make an index by birthday (birth
date, to be more exact.)

With a nonclustered index, it's like you have a bunch of
paper lists, each paper with a date, and the people born
under that date. You can quickly determine all people who
were born on August 4, 1986. However the papers themselves
are not sorted, so if you wanted to know all people born in
1986, or August 1986, you'll have to go through all the papers.

With a clustered index, the birth certificates themselves
are sorted by birth date, so searching for people born in
1986, or August 1986, January-June 1981, or any date range
is much faster. Also, it is easier to sort all the people by
birth date (since the data is already sorted).

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to rebuild all indexes on a single table?

772


How to create sub reports?

210


What are acid properties of transaction?

693


What happens if null values are involved in datetime operations?

704


Tell me what is de-normalization and what are some of the examples of it?

763


how to create a scrollable cursor with the scroll option? : Sql server database administration

771


What are approximate numeric data types in ms sql server?

764


Any one plz send me SQL Server Developer/DBA resume for 4 years experience

2381


What are transactions and its controls?

798


Using the customer, and order table in northwind database, please write a query to produce xml?

851


How do you debug a procedure in sql server?

639


What are the basic functions for master, msdb, model, tempdb databases?

785


What are the operating modes in which database mirroring runs?

818


How to list all user names in a database?

777


What number sorts of privileges are accessible in sql?

754