| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Table acting as a relation table
Guy wrote:
> On Apr 10, 4:53 pm, Lennart <erik.lennart.jons..._at_gmail.com> wrote: >
> > > 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.
I think what you have would make more sense if you redrew it as:
T_HOSPITAL <-------------- T_HOSPITAL_CLINIC <-------------> T_CLINIC
T_HOSPITAL key (HOSPITAL_CODE) T_CLINIC key (CLINIC_CODE) T_HOSPITAL_CLINIC key (CLINIC_CODE)
, foreign key (HOSPITAL_CODE) references T_HOSPITAL (HOSPITAL_CODE) , foreign key (CLINIC_CODE) references T_CLINIC (CLINIC_CODE) Received on Tue Apr 10 2007 - 16:35:02 CDT
![]() |
![]() |