Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What are the differences between clustered and a non-clustered index?

user-image
Question ajoutée par Utilisateur supprimé
Date de publication: 2015/03/31
Lina Alqutub
par Lina Alqutub , Treasury Accountant , Saudi Import Co. BANAJA

What are the difference between clustered and a non-clustered index?

Balaji Manigela
par Balaji Manigela , Admin Assistant , GULF LINK VENTURE.CO.WL

Indexes are also look like book index it is easy to identify.In clusterd index leaf node points to the actual data while in non-clusterd index the leaf node uses the clusterd index to locate data.

Jay Joshi
par Jay Joshi , Database Developer , Accion Labs [Client: Amway]

A Clustered Index defines the way how Data is Physically Stored on your Disk. A Clustered Index is usually created on the Primary Column of the table. There can be only1 Clustered Index on a table.

A Non Clustered Index is usually created on a Non Primary Column of a table which is used to fetch the data faster when the Search is made on non primary column. There can be more than1 Non Clustered Index on a table.

In case if you need any further clarification, please let me know.

Thanks,

Jay J. Joshi

Gayasuddin Mohammed
par Gayasuddin Mohammed , Advocate , Practicing Law before High Court at Hyderabad

Clustered index is the one which gets creates automatically along with your primary key field on it if it has one, at the creation of that particular table itself, purpose of the clustered index is the physical storage of data and the retrieving data is faster because of the index.   There is only one clustered index on the table. You can also create clustered index by create index index_name ...  on the primary key field of the table.

Non-clustered Index - this is a logical index can be created on any field of the table for the purpose of retrieving data in a quicker way. Many clustered index can be created on one table, but I think there is a limit of256 or so, I could not remember the number exactly now.

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?