Problem Statement
Which statement best describes a clustered index in systems that support it (e.g., SQL Server)?
Explanation
A clustered index makes the table pages follow the index order, so range scans on that key are very efficient. There can be only one clustered index. It may slow random inserts into the middle of the key space.
Code Solution
SolutionRead Only
-- SQL Server CREATE CLUSTERED INDEX cix_orders ON orders(order_date, id);
Practice Sets
This question appears in the following practice sets:
