Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Order by empty first
Message
 
 
To
10/09/2017 01:25:03
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2014
OS:
Windows 8.1
Network:
Windows Server 2012
Miscellaneous
Thread ID:
01654178
Message ID:
01654182
Views:
44
>>By empty you meant NULL, right?
>>
>>order by coalesce(myDate, '30000101') DESC
>
>An empty date value is stored on the field when there is no value.

SQL Server doesn't have that for dates. It is either NULL or some default value.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform