We help IT Professionals succeed at work.
Get Started

SQL Server - Order by date Asc but make null values appear at end instead of the beginning

Last Modified: 2012-05-12
I have a query that is returning data containing a column that has datetime data.  Some of the fields in this column are potentially null.  I want to order the data by the date in an asc direction.  When I do this, the records that have a null in this column are at the top of the data.  I would like to have them at the bottom of the data set.  How can this be done?
Watch Question
Database Administrator
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE