Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

difference between

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
0

hi guys

thanks for my previous question. i want to know what is the difference between clusted index and nonclusted index i want to know simple way?

thanks & regards
m.a.khaleel
 
when you create a clustered index the data in the table is actually kept in the order of that index. Therefore you can only have one clistered index per table. A non clustered index consists of the index field(s) plus a pointer to the location of the data in the table.

Clustered indexes can be especially useful because the data is physically arranged that way, so for example if you have a name and address table where most of the queries are on 'lastname' creating a cluster index on 'lastname' would speed those up considerably. Also creating a clustered index on the parent key in a child table when most of the queries are 'give me a the children for this parent' works the same way.

 
thanks for continue reply.

thanks & regards
m.a.khaleel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top