I cannot get an empty result in CASE
statement. The following query returns NULL
as the result:
SELECT CASE WHEN ('test' IS NULL) THEN (SELECT 'null_result') ELSE (SELECT 'empty_result' WHERE 1<>1) END;
I want to get empty result (without any rows).