Hi all,Quick question, is it possible to implement a constraint over two columns that specifies that one column must contain a value and not the other. iecreate table x( id int NOT NULL, column1 int null, column2 int null, constraint Y (??));insert into x(1, 1, NULL) -- this should work under the constraintinsert into x(1, NULL, 1) -- this should work under the constraintinsert into x(1, 1, 1) -- this should fail under the constraintinsert into x(1, NULL, NULL) -- this should fail under the constraint
I know the sql isnt 100% accurate. Just looking to see if its possible to do what i want? RegardsNiall.