limiting results to the most recent date

Mr.K

Registered User.
Local time
Yesterday, 21:38
Joined
Jan 18, 2006
Messages
104
I have two tables: tblA with PersonID field; tblB with PersonID field and AppointmentDates field. Tables are joined on PersonID field.
How to run a query which would return all records from tblA and only the most recent date from AppointmentsDates field from tableB?

Do I use GroupBy somewhere or Top 1 to acomplish this? Or maybe I should use a sub-query?
 
Michael J Ross - thanks man, that does it.
 

Users who are viewing this thread

Back
Top Bottom