THE SQL Server Blog Spot on the Web
Welcome to SQLblog.com - The SQL Server blog spot on the web Sign in | Join | Help
in Search

Browse by Tags

All Tags » NULL » trick   (RSS)
Sorry, but there are no more tags available to filter with.
  • Sort Values Ascending But NULLS Last

    This is a frequent request in newsgroups and fora. People want to sort the column in ascending order but don't want the NULLS at the beginning. Oracle has this syntax: ORDER BY ColumnName NULLS LAST;SQL Server does not have this. But there are 2 ways to do this. The first one is by using case and the second one by using COALESCE and the maximum ...
    Posted to Denis Gobo (Weblog) by Denis Gobo on October 19, 2007
Powered by Community Server (Commercial Edition), by Telligent Systems
  Privacy Statement