Friday, October 5, 2012

sort by ascending in MSSQL yet put the null values last

I am stealing this from this.

order by case when MyDate is null then 1 else 0 end, MyDate

No comments:

Post a Comment