I have a field that can contain data or NULL value.
So all I need is to say when it is NULL - display 'Non Paid'
and when it is Not Null display 'Paid'
SELECT DISTINCT 'STATUS' = CASE PMTSATAS
WHEN NULL THEN 'NOT PAID'
WHEN Not IsNULL THEN 'PAID'
END
from dbo.ASI_ESP_INCENTIVE_1ST_VW
So far it is showing error at NOT.
Please, check it out for me
So all I need is to say when it is NULL - display 'Non Paid'
and when it is Not Null display 'Paid'
SELECT DISTINCT 'STATUS' = CASE PMTSATAS
WHEN NULL THEN 'NOT PAID'
WHEN Not IsNULL THEN 'PAID'
END
from dbo.ASI_ESP_INCENTIVE_1ST_VW
So far it is showing error at NOT.
Please, check it out for me