I am using the following. It returns "IT IS NOT NULL" no matter if there is a null value in the Disch_date field or not. What am I doing wrong?
Thanks in advance - Shannan
SELECT Admit_date, Disch_date,
CASE Disch_date
WHEN NULL THEN 'IT IS NULL'
ELSE 'IT IS NOT NULL'
END 'RESULTS'
FROM Pat_visit_T
Thanks in advance - Shannan
SELECT Admit_date, Disch_date,
CASE Disch_date
WHEN NULL THEN 'IT IS NULL'
ELSE 'IT IS NOT NULL'
END 'RESULTS'
FROM Pat_visit_T