I currently have the following code:
CASE WHEN CONVERT(DATE, BirthDateTime) IS NULL THEN '' END AS DOB,
CASE WHEN CONVERT(DATE, ServiceDateTime) IS NULL THEN '' END AS [Admission Date],
CASE WHEN CONVERT(DATE, DischargeDateTime) IS NULL THEN '' END AS [Discharge Date],
It returns:
What is the best way to still convert the date to Date (original field is datetime) and if it is Null then return blank or ' '
Thanks in advance!