
Originally Posted by
June7
300 columns!?!? Tables have a limit of 256 fields. It's rare to see them all used. Often an indication of non-normalized data structure.
"Duplication" will happen when joining 'master' (or parent) table to multiple 'child' tables (child tables have many records associated with master). Better to do a report with subreports for each of the related child tables.
Or can do aggregate query on each of the child tables and then join the queries to master.
Your sample tables have only one record for each patient. This should not result in "duplication".
SELECT Patients.*, [Lung Volumes].*, PH.*, CT.*
FROM [Lung Volumes] RIGHT JOIN (CT RIGHT JOIN (Patients LEFT JOIN PH ON Patients.[Patient ID] = PH.[Patient ID]) ON CT.[Patient ID] = Patients.[Patient ID]) ON [Lung Volumes].[Patient ID] = Patients.[Patient ID];
PatientID fields in CT and LungVolumes should be changed to number type.
Advise no spaces or special characters/punctuation in names nor reserved words as names. Better would be PatientID or Patient_ID.