There are two types of indexes:
- Clustered: Clustered indexes store the data in order, so whatever columns you choose in a clustered index, that's the way the data will be sorted in a table. The data is stored physically on disk in the order of the clustered index. A clustered index can be viewed as a tree built on top of a table. The columns (key) that you place in the clustered index determines the order of the rows in the table. The following diagram shows an example of how a clustered index is structured:
- Non-clustered: Nonclustered indexes don't sort the data. They instead use pointers to the physical data to quickly ...