Junior SQL

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

  • Clustered Index: The data is stored in the order of the index. A table can have only

one clustered index because the rows can only be ordered in one way.

  • Non-clustered Index: The index is separate from the data, and the index contains

pointers to the data. A table can have multiple non-clustered indexes.

More from SQL Server Tutorial

All questions for this course