Postgres 9.3
I have two integer type columns 'a' and 'b'. Valid options are:
- 'a' is null, 'b' is null
- 'a' is not null, 'b' is null
- 'a' is not null, 'b' is not null
I'm trying to add a check/constraint which prevents the invalid option:
- 'a' is null, 'b' is not null
I'd be grateful for any help.
Thanks in advance Dan