hi
anyone clear my doubt please
what is the difference between clustered index and non clustered index
clustered index means it reorders the way of column whatever iam give right?
and non clustered index means
please tell me i dont know
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Uttam ChaturvediRank #477 · 5.2K reputationPosted Apr 30, 2018, 7:31 AM EDT
Rajkiran SwainRank #165 · 14.4K reputationPosted Apr 30, 2018, 4:40 AM EDT
- A Table can have ONLY 1 Clustered Index.
- A Clustered Index always has Index Id of 0.
- A Primary Key constraint creates a Clustered Index by default.
- A Primary Key constraint can also be enforced by Nonclustered Index, You can specify the index type while creating Primary Key.
- If the table does not have Clustered Index it is referred to as a "Heap".
- The leaf node of a Clustered Index contains data pages of the table on which it is created.
- Clustered Index enforces a logical order on the rows. Rows are ordered based on Clustering Key.
Nonclustered IndexShahriar NikkhahRank #248 · 10.1K reputationPosted Apr 30, 2018, 3:59 PM EDT
I might be better to see the field(s) and data type that you are sellecting and why?
Amudhan KuppanRank #3,375 · 426 reputationPosted Apr 30, 2018, 7:47 PM EDT