simon551
IS-IT--Management
- May 4, 2005
- 249
Hi! I'm trying to get the Key ID field of a table in a query that takes the last date listed for each Foreign Key ID. I can group by the foreign key but if I try to get the key as well then it craps out. Can you help?
That MembershipProcessID field is what I'm after...
Thanks!
Code:
SELECT MemberID, Max(ProcessDate) AS MaxDate, MembershipProcessID
FROM tblMembershipsProcessed
GROUP BY MemberID;
Thanks!