clustered vs. non-clustered indexes.

By vivek kumar in 22 Jul 2024 | 08:24 pm
vivek kumar

vivek kumar

Student
Posts: 552
Member since: 20 Jul 2024

 clustered vs. non-clustered indexes.

22 Jul 2024 | 08:24 pm
0 Likes
Prince

Prince

Student
Posts: 557
Member since: 20 Jul 2024

**Clustered Index:**

- **Definition:** Determines the physical order of data rows in the table.

- **Characteristics:** Only one clustered index per table. The table is sorted and stored on disk according to this index.

- **Use Case:** Efficient for range queries and sorting operations.


**Non-Clustered Index:**

- **Definition:** Creates a separate structure from the data rows, with pointers to the location of the data.

- **Characteristics:** Multiple non-clustered indexes can exist per table. Does not affect the physical order of the table.

- **Use Case:** Useful for optimizing queries on non-primary key columns.

22 Jul 2024 | 10:20 pm
0 Likes

Report

Please describe about the report short and clearly.