check for null date in CASE statement, where have I gone wrong?
Try: select id, StartDate, CASE WHEN StartDate IS NULL THEN ‘Awaiting’ ELSE ‘Approved’ END AS StartDateStatus FROM myTable You code would have been doing a When StartDate = NULL, I think. NULL is never equal to NULL (as NULL is the absence of a value). NULL is also never not equal to NULL. The syntax … Read more