Question : Clustered Index on Multiple Columns

When you build a clustered index on two columns, which column benefits from things like an ORDER BY clause, ie. which is the primrary sort for the keys? Is it just the first column listed in the create index statement?

Thanks

Answer : Clustered Index on Multiple Columns

Yes, data is sorted in the way you created and index. E.g. if you create clustered index on City and StreetAddress columns, data is sorted by City, then by StreetAddress.
Random Solutions  
 
programming4us programming4us