Hi Gary
A query like this should do the trick – substitute your own table and field names:
SELECT Patients.patID, Patients.patFirstName, Patients.patLastName, ...
FROM Patients
WHERE Patients.patID In (SELECT vstPatient FROM Visits GROUP BY vstPatient HAVING Count(*)>1);
Warmly,
Graham
From: MS_Access_Professionals@yahoogroups.com [mailto:MS_Access_Professionals@yahoogroups.com]
Sent: Wednesday, 23 May 2018 11:56
To: MS_Access_Professionals@yahoogroups.com
Subject: [MS_AccessPros] Q on filtering Access output
Hi:
I am using Access 2003 (system requirement for this database and
system it supports..
Pulling a large amount of data, both rows and columns, and would like
to simplify/speed up. Over 50 columns and 100,000 rows.
I need to exclude all patients who were in once, and only include
those with multiple visits.
Any thoughts? This would be possible in some versions of SQL, is it
possible with Access SQL? Anything possible with Access 2010?
Thanks,
Gary
--------------------------------------------------------
Gary D. Schwartz Please reply to: gary.schwartz@pobox.com
Posted by: "Graham Mandeno" <graham@mandeno.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (3) |
Tidak ada komentar:
Posting Komentar