I'm no developer but I've been asked to implement this functionality:
I have a table that contains two columns (say A and B) that can contain either '0' or '1'.
1) For an update, column A can only be given the value '1' if the value of column B is also '1' and
2) an insert can only accept the value '1' in column A, if it also contains the value '1' for column B.
Can anyone tell me how to do this?