T-SQL Ordering Myth #1: Clustered Indexes Determine Default Sort Order
“If I query a table that has a clustered index without specifying an ORDER BY clause, the resultset will be sorted according to the clustered index” may sound reasonable. After all, since “a clustered...
View ArticleT-SQL Ordering Myth #2: ORDER BY in Views
Since a view is a saved query and queries can specify ordering, adding ORDER BY a view definition might seem a reasonable proposition. Try it and Microsoft SQL Server chokes. Then you learn the trick:...
View Article
More Pages to Explore .....