I believe my logic is right but my bracketing is not.
My boolean requirement is that j can have an 'a' or 'b' or 'x' values as long as c or s or cont is not empty.
same holds true for k. k can have a value of 'a' or 'b' as long as c or s or cont are not empty.
any violation will throw some form trigger error.
I my code, what is happening is that it didn't matter whether c or s or cont are empty, it is throwing out error messages as long as j or k has any of the values described above.
If I have not lost you, here is my code:
BEGIN
IF J='A'
OR :J='B'
OR :J='X'
OR :K='A'
OR :K='B')
AND C IS NULL
OR :S IS NULL
OR :CONT IS NULL) THEN
MESSAGE(none of these must be entered');
RAISE FORM_TRIGGER_FAILURE;
END IF;
END;
My boolean requirement is that j can have an 'a' or 'b' or 'x' values as long as c or s or cont is not empty.
same holds true for k. k can have a value of 'a' or 'b' as long as c or s or cont are not empty.
any violation will throw some form trigger error.
I my code, what is happening is that it didn't matter whether c or s or cont are empty, it is throwing out error messages as long as j or k has any of the values described above.
If I have not lost you, here is my code:
BEGIN
IF J='A'
OR :J='B'
OR :J='X'
OR :K='A'
OR :K='B')
AND C IS NULL
OR :S IS NULL
OR :CONT IS NULL) THEN
MESSAGE(none of these must be entered');
RAISE FORM_TRIGGER_FAILURE;
END IF;
END;