• Hi David,

    One quick one. In session II of Stairway to SQL Server Indexes you mentioned that:

    * Non Clustered Index Is a sorted set of entries.

    I have little doubt on it.

    If we run below query you will find that the output of first query on "CONTACTS_INDEX" table with "FULLNAME" index on "LastName, FirstName" the out put is not sorted.

    SELECT * FROM DBO.CONTACTS_INDEX WHERE LASTNAME LIKE 'Ste%'

    But when we run the below query on "CONTACT_NOINDEX" table results are sorted.

    SELECT * FROM DBO.CONTACTS_NOINDEX WHERE LASTNAME LIKE 'Ste%'

    So now my question is why is it so? If I do a select on Heap table I am getting data sorted but when I do a select on table with NonCluster index data is not sorted.