Subject Re: [ib-support] join-sort question
Author Helen Borrie
At 12:27 PM 03-07-01 +0200, you wrote:

[problem snipped]

and solved by Svein...

>select p.*, s.* from patients p left outer join patientstatus s
>on (( and ( order by
>and you should be fine.

but...I observe the potential for chaos here, with this composite key in a 1:1 relationship. What happens if the admitting staff enter patient 101 as "Mary Ann Smith" into Patients and the clinical staff enter patient 101 as "Maryann Smith" into PatientStatus? With this key structure, the two will never match up. (Two RDBMS thunderclouds: non-atomic keys and redundancy!)

Why is the relationship not formed with the patient id alone?


All for Open and Open for All
InterBase Developer Initiative ยท