Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: Table acting as a relation table

Re: Table acting as a relation table

From: Guy <guhar1_at_yahoo.com>
Date: 10 Apr 2007 14:07:12 -0700
Message-ID: <1176239232.396822.54370@s48g2000cws.googlegroups.com>


On Apr 10, 4:53 pm, Lennart <erik.lennart.jons..._at_gmail.com> wrote:
> Guy wrote:
>
> [...]
>
> > So I added a relation table:
> > T_HOSPITAL_CLINIC
> > HOSPITAL_CODE
> > CLINIC_CODE
>
> > T_HOSPITAL --------------> T_HOSPITAL_CLINIC --------------> T_CLINIC
>
> > But some old modeling architect revising my model told me that it was
> > not a good practive to add a table which do not have a key for each of
> > its records.I would like to know why ? Any other comments
> > appreciated.
> > Thanks.
>
> Given your design the same clinic can be related to several hospitals,
> is that intentional?
>
> /Lennart

A clinic can be in any hospital, but only if its not already assigned to another hospital. My physical example could be misleading. I am dealing with administrative regroupings, rather than real physical entities. Received on Tue Apr 10 2007 - 16:07:12 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US