AKMonkeyboy
IS-IT--Management
I have two tables that I'll eventually need to join, tblPatients and tblProcedures.
I only want to see the top 4 records for each patient in tblProcedures (some patients have well over 4 procedures). Of course I have a PatientID field to use to join the two tables.
What would be the best way to do this? I know how to limit total number of records, but I do not know how to limit records using another field (am I making any sense?).
Thanks in advance for any help.
Monkey
Give a man a fish, and you feed him for a day.
Teach a man to fish, and you feed
him for life.
Send a man to Tek-Tips and the poor sap can find out how to fish on his own, and learn more by doing it.
I only want to see the top 4 records for each patient in tblProcedures (some patients have well over 4 procedures). Of course I have a PatientID field to use to join the two tables.
What would be the best way to do this? I know how to limit total number of records, but I do not know how to limit records using another field (am I making any sense?).
Thanks in advance for any help.
Monkey
Give a man a fish, and you feed him for a day.
Teach a man to fish, and you feed
him for life.
Send a man to Tek-Tips and the poor sap can find out how to fish on his own, and learn more by doing it.