| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Uniqueness over two fields
Brian Tkatch wrote:
> DONNA wrote: >
> > A new TABLE for each store is silly; it should be one TABLE with stoire > as part of the PK. > > If you are tracking a store's items, and have many stores in the TABLE, > the natural PK of the TABLE is the store and the item id. The sku > should not be in the PK, so enforcing uniqueness is for data integrity > and throwing a unique INDEX (or CONSTRAINT) on store/sku makes a lot > of sense.
Wow, that's a lot of very detailed design advice you gave on the basis of no information whatsoever. Received on Tue Jan 02 2007 - 12:14:58 CST
![]() |
![]() |