I run a select statement for a table. I do an ORDER BY on a field which is DATE type.
That field has 3 possible values:
-
A date>=today
-
A date<today
-
null
I wanted it to consider no2 as null in order to bring me the no1 results first and then ALL the others, no matter their values as I run a second ORDER BY next.
I tried anything with no success, it seems this is beyond my knowledge.
Thank you for reading me!
For SQL Server: