Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: foreign key w/o foreign/primary key
> Does anyone have an opinion on the most efficient way to check
> referential integrity on a table where the would-be foreign key is
> neither unique or primary? Would I use a check constraint? If so, how
> without a subquery?
How about making your schema relational?
Trying to cover a bad design up with code is a recipe for ... well you know.
Lots of things will work. But a redesign of something that is obviously flawed is the best answer.
Daniel A. Morgan Received on Mon Jan 15 2001 - 23:52:07 CST
![]() |
![]() |