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_at_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 - 23:07:12 CEST

Original text of this message