Jun 29, 2004 #1 manmaria Technical User Aug 8, 2003 286 US I want to null if it satisfy 2 conditions OR MORE like NULLIF (COLUMN1=' ' OR COLUMN1='0' OR OR COLUMN1='00'XB) But it is not working right now. Is there any other way I can do this. Thanks
I want to null if it satisfy 2 conditions OR MORE like NULLIF (COLUMN1=' ' OR COLUMN1='0' OR OR COLUMN1='00'XB) But it is not working right now. Is there any other way I can do this. Thanks
Jun 29, 2004 #2 ummadhira Technical User Jul 3, 2002 4 US You have to use NULLIF (COLUMN1=' ') OR (COLUMN2='00'XB) OR (COLUMNS3='0') Hope this will help you. Upvote 0 Downvote
Jul 5, 2004 #3 dnoeth Instructor Oct 16, 2002 545 DE CASE WHEN COLUMN1=' ' OR COLUMN1='0' OR OR COLUMN1='00'XB THEN NULL ELSE COLUMN1 END or CASE WHEN COLUMN1 IN (' ','0','00'XB) THEN NULL ELSE COLUMN1 END Dieter Upvote 0 Downvote
CASE WHEN COLUMN1=' ' OR COLUMN1='0' OR OR COLUMN1='00'XB THEN NULL ELSE COLUMN1 END or CASE WHEN COLUMN1 IN (' ','0','00'XB) THEN NULL ELSE COLUMN1 END Dieter