Difference between clustered and non-clustered index.- Both stored as B-tree structure. The leaf level of a clustered index is the actual data where as leaf level of a non-clustered index is pointer to data.
- We can have only one clustered index in a table but we can have many non-clustered index in a table. Physical data in the table is sorted in the order of clustered index while not with the case of non-clustered data
Difference between clustered and non-clustered index.- A clustered index is unique for a given table. The actual data is at the leaf level of a clustered index and data is resorted.
- Non-clustered index has the leaf level which has pointers to the data in the rows, so that one table can have as many as non-clustered indexes in a database.