This check constraint isn't working for me:
ALTER TABLE tab1
ADD CONSTRAINT CHK1 CHECK
(col1 in ('val1','val2','val3','val4') and (col2='0' or col2 IS NULL))
ENABLE;
What I need is if col1 contains any of the mentioned 4 values, then col2 has to be '0' or 'NULL'.