Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Which normal form is this violating?
>> Here's where I lost you, unless you're assuming that Table_B.fieldx
is NOT a foreign key. If it IS a foreign key (and I think it's
reasonable to assume that's how they're thinking about it), then the
above insert fails. <<
I am not sure that it is foreign key constraint .. people write pretty bad code these days, so I did not assume specs.
>> It seems to me like Table_A defines the domain of fieldx values,
and Table_B actually uses those values. <<
That would be MUCH better. What I would like to see is a CREATE DOMAIN statement (available in SQL-92) that makes this clear and works for all places that an attribute like "color" appears. The PK-FK approach is a work-around that gets abused really fast.
![]() |
![]() |