Laurie Gustin
2013-06-18 19:28:50 UTC
Is there an easy to to create a constraint on one column, based on the
value in another column Both fields are in the same table. Specifically,
I have two columns and they are mutually exclusive.
If col1 is null then col2 is not null or if col1 is not null then col2 is
null
and both columns cannot be null
I was hoping to do this with a check constraint - if not, I may have to use
a trigger.
Any help is appreciated :)
Laurie
IDS 11.7FC7 and IDS 11.5FC9
value in another column Both fields are in the same table. Specifically,
I have two columns and they are mutually exclusive.
If col1 is null then col2 is not null or if col1 is not null then col2 is
null
and both columns cannot be null
I was hoping to do this with a check constraint - if not, I may have to use
a trigger.
Any help is appreciated :)
Laurie
IDS 11.7FC7 and IDS 11.5FC9