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

  • Contains only key columns and row locators
  • Determines the order of data rows on disk
  • Has a higher level of fragmentation compared to clustered
  • Stores a separate copy of the table data
A clustered index in an RDBMS determines the order of data rows on disk, physically rearranging the data rows according to the index key. In contrast, a non-clustered index stores a separate copy of the index key columns along with row locators, maintaining a logical ordering of data without altering the physical order.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *