Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Unique Key
Juan Carlos wrote on 27-Jul-99 23:00:06:
>We want to create a xref table for SSN and an Employee ID which will be
>different. The table will just be those two columns. But I have a
>dilemma. If I make SSN the PK, this would allow duplicate Employee
>ID's. If I make it a composite PK, it would be possible to have
>duplicate SSN's but different Employee ID's. Is there a way to make
>the unique and distinct at the same time without triggers? JerryTWP: el
>subject debe ser "Unique Key"
Yes, there is a way:
This should solve your problem.
Hope that helps,
Lothar
--
Neue Adresse ab 10.07.'99:
Lothar Armbrüster | lothar.armbruester_at_rheingau.netsurf.de Hauptstr. 26 | lothar.armbruester_at_t-online.de D-65346 Eltville |Received on Tue Jul 27 1999 - 16:27:14 CDT