Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Unique constraints across tables?
I am trying to find the best way to make two fields in two different tables
unique together. I don't think that this can be done in a constraint, and am
thinking that it should be done in a trigger. I thought that I would just
confirm my thoughts before doing this.
The structure looks like this:
TABLE1
ID PK
TERMINATION_DATE DATE NULL
TABLE2
ID FK
TELNO VARCHAR2 NULL
Telno and Termination_date are to be unique together not separately.
I would appreciate any help, with this. Thanks in advance. SWilson
-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Wed Nov 11 1998 - 13:26:05 CST