Order-By

Tag: order-by

ORDER BY, OFFSET, and Fetch in TSQL

ORDER BY, OFFSET, and Fetch in TSQL

By Kendra Little on June 29, 2018

My most recent Quizletter featured a quiz on ORDER BY in TSQL, complete with questions on the OFFSET and FETCH clauses which we got in SQL Server 2012.

One great thing about teaching TSQL School is that it reminds me of these cool options that can be easy to forget.

Continue reading

Does a Clustered Index Give a Default Ordering?

Does a Clustered Index Give a Default Ordering?

By Kendra Little on February 2, 2018

I recently got a great question: if I order by a column where all rows in that column have the same value, will SQL Server then order the results by the clustered index key?

Continue reading