In oracle is there a way to enforce uniqueness among two columns?
Its not the uniqueness among combination of two columns, but values across table among two columns.
References:
Unique value constraint across multiple columns
Example data, which should not be allowed:
id | phone1 | phone2
1 | 111 | 111
id | phone1 | phone2
1 | 111 | NULL
2 | 111 | NULL
id | phone1 | phone2
1 | 111 | NULL
2 | NULL | 111
Unique constraint on combination of two columns?
My Oracle Version:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production