F
ferde
I have been researching this question in two books I have on access 2003 and
hope someone can help me because I am a beginner. I have two tables that I
have joined in a select query and I have tried setting the query properties
to unique records as well as unique values in order to get the number of
patients who were discharged alive after having a code event. The first
table has the admit info such as the patients name and his discharge status.
The second table has the event date. My results end up with duplicate
records inspite of setting the query for unique values. (i.e the patient is
discharged dead twice) Can someone help direct me? Thank you in advance for
your time.
SELECT DISTINCT LocalAnalysis_Admit.PatientLastName,
LocalAnalysis_ARCEvent.AdmitControlNumber, LocalAnalysis_ARCEvent.EventDate,
LocalAnalysis_Admit.DischargeDispositionAsText
FROM LocalAnalysis_Admit INNER JOIN LocalAnalysis_ARCEvent ON
LocalAnalysis_Admit.AdmitControlNumber =
LocalAnalysis_ARCEvent.AdmitControlNumber;
hope someone can help me because I am a beginner. I have two tables that I
have joined in a select query and I have tried setting the query properties
to unique records as well as unique values in order to get the number of
patients who were discharged alive after having a code event. The first
table has the admit info such as the patients name and his discharge status.
The second table has the event date. My results end up with duplicate
records inspite of setting the query for unique values. (i.e the patient is
discharged dead twice) Can someone help direct me? Thank you in advance for
your time.
SELECT DISTINCT LocalAnalysis_Admit.PatientLastName,
LocalAnalysis_ARCEvent.AdmitControlNumber, LocalAnalysis_ARCEvent.EventDate,
LocalAnalysis_Admit.DischargeDispositionAsText
FROM LocalAnalysis_Admit INNER JOIN LocalAnalysis_ARCEvent ON
LocalAnalysis_Admit.AdmitControlNumber =
LocalAnalysis_ARCEvent.AdmitControlNumber;