order by

Technical Article

Returning Sorted Record Sets Using the ORDER BY Clause

  • Article

Having your data returned to you in some meaningful sorted order is important sometimes. If you don’t tell SQL Server you want to order the results of a SELECT statement then there is no guarantee that your result set will come back in a particular order. To make sure a result set is ordered you need to use the ORDER BY clause. In this article I will be exploring how to return an order result set by using the ORDER BY clause.

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

You rated this post out of 5. Change rating

2015-01-16

10,316 reads

Blogs

Postgres data in Snowflake in under a minute, without an ETL pipeline

By

We spent two days benchmarking Snowflake Postgres mirroring under load. Postgres data reached Snowflake...

Why your data strategy and AI strategy should be one

By

When data and AI strategies compete for the same platform, teams duplicate work and...

Microsoft Ignite Announcements Nov 2026

By

Microsoft shared another large set of announcements at Microsoft Ignite, held November 17–20 in...

Read the latest Blogs

Forums

BCA KCP KEM Tower Tlpn(CS):082126922251

By christy.umoren

BCA KCP KEM Tower Tlpn(CS):082126922251 Kem Tower, Jl. Landas Pacu Barat No.Kav 2 Blok...

BCA KCP Sunter Danau Tlpn(CS):082126922251

By christy.umoren

BCA KCP Sunter Danau Tlpn(CS):082126922251 Jl. Danau Agung 2 No.1A Blok E2, RT.4/RW.16, Sunter...

BCA KCP Raden Saleh Tlpn(CS):082126922251

By christy.umoren

BCA KCP Raden Saleh Tlpn(CS):082126922251 Jl. Raden Saleh Raya No.17A No. 13, 15, RT.1/RW.2,...

Visit the forum

Question of the Day

Severe Errors

Which class of errors are automatically written to the error log?

See possible answers