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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Uttam ChaturvediPosted Apr 30, 2018, 11:31 AM
Amudhan KuppanPosted Apr 30, 2018, 11:47 PM
Shahriar NikkhahPosted Apr 30, 2018, 7:59 PM
I might be better to see the field(s) and data type that you are sellecting and why?
Rajkiran SwainPosted Apr 30, 2018, 8:40 AM
- 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 Index