N
Nir N
I have a database detailing patients visits. In each visit I take patient's
photos, so each patient has many records for the same visit.
I created a query using the "unique values" property that outputs only one
record per patient's visit:
SELECT DISTINCT dbo_M2000.LASTNAME, dbo_M2000.FIRSTNAME, dbo_M2000.PIN,
dbo_IMAGE.PHOTODATE
FROM dbo_M2000 INNER JOIN dbo_IMAGE ON dbo_M2000.RECNUM = dbo_IMAGE.LINKNUM
ORDER BY dbo_M2000.LASTNAME;
Now, I need to count how many patients visited only once, how many patients
visited 2 times etc. I don't need the patient's names- only the summery
numbers (or a bar chart). How can I do it?
Thanks,
Nir
photos, so each patient has many records for the same visit.
I created a query using the "unique values" property that outputs only one
record per patient's visit:
SELECT DISTINCT dbo_M2000.LASTNAME, dbo_M2000.FIRSTNAME, dbo_M2000.PIN,
dbo_IMAGE.PHOTODATE
FROM dbo_M2000 INNER JOIN dbo_IMAGE ON dbo_M2000.RECNUM = dbo_IMAGE.LINKNUM
ORDER BY dbo_M2000.LASTNAME;
Now, I need to count how many patients visited only once, how many patients
visited 2 times etc. I don't need the patient's names- only the summery
numbers (or a bar chart). How can I do it?
Thanks,
Nir