select MyDate
from MyTable
order by case when MyDate is null then 1 else 0 end, MyDate
More Related Contents:
- SQL Query – Using Order By in UNION
- Sorting null values after all others, except special
- How to use SQL Order By statement to sort results case insensitive?
- Alphanumeric sorting with PostgreSQL
- Sort by column ASC, but NULL values first?
- Natural Sort in MySQL
- SQL multiple column ordering
- ORDER BY the IN value list
- SQL best practice to deal with default sort order
- How to order by with union in SQL?
- Humanized or natural number sorting of mixed word-and-number strings
- Optimize query with OFFSET on large table
- How to use DISTINCT and ORDER BY in same SELECT statement?
- Dynamic Sorting within SQL Stored Procedures
- Can I do a max(count(*)) in SQL?
- How to update and order by using ms sql
- SQL Server UNION – What is the default ORDER BY Behaviour
- Sort NULL values to the end of a table
- PostgreSQL ORDER BY issue – natural sort
- Why do NULL values come first when ordering DESC in a PostgreSQL query?
- “Order By” using a parameter for the column name
- SQL: ORDER BY using a substring within a specific column… possible?
- How Can I Sort A ‘Version Number’ Column Generically Using a SQL Server Query
- Custom Order in Oracle SQL
- SQL for ordering by number – 1,2,3,4 etc instead of 1,10,11,12
- SQLite Order By Date1530019888000
- how does SELECT TOP works when no order by is specified?
- SQL ORDER chars numerically
- Dynamic order direction
- ORDER BY alphabet first then follow by number