WITH
MEM
AS
(SELECT 1 VAL FROM DUAL
UNION ALL
SELECT 2 VAL FROM DUAL
UNION ALL
SELECT 3 VAL FROM DUAL)
SELECT CASE WHEN VAL <= 0 THEN NULL WHEN VAL = 4 THEN NULL ELSE NULL END SOME_MESS
FROM MEM
Не знаю, как её устронить