Have a MS Access Select query as displayed below that results in the extraction of data with multiple records per member with different dates.
What modifications need to be made to just extract one record for each member - the record with the most recent date?
Thanks in advance for any assistance. Just can't quite get this right after more than 2 hours!
SELECT EligMbrs_SecondIter.MEMBER_ID, dbo_MEMBER_PCP.PROVIDER_ID, dbo_MEMBER_PCP.MBR_PCP_BEGIN_DT, dbo_PROVIDER.PROV_FULL_NM
FROM (dbo_MEMBER_PCP INNER JOIN dbo_PROVIDER ON dbo_MEMBER_PCP.PROVIDER_ID = dbo_PROVIDER.PROVIDER_ID) INNER JOIN EligMbrs_SecondIter ON dbo_MEMBER_PCP.MEMBER_ID = EligMbrs_SecondIter.MEMBER_ID;
Query Results currently look like this;
MemberID---ProviderID---MbrPCPBegDt----ProvName
12345-------90567--------1/1/08---------JaneSmith
12345-------90456--------3/4/08---------JillSmith
What modifications need to be made to just extract one record for each member - the record with the most recent date?
Thanks in advance for any assistance. Just can't quite get this right after more than 2 hours!
SELECT EligMbrs_SecondIter.MEMBER_ID, dbo_MEMBER_PCP.PROVIDER_ID, dbo_MEMBER_PCP.MBR_PCP_BEGIN_DT, dbo_PROVIDER.PROV_FULL_NM
FROM (dbo_MEMBER_PCP INNER JOIN dbo_PROVIDER ON dbo_MEMBER_PCP.PROVIDER_ID = dbo_PROVIDER.PROVIDER_ID) INNER JOIN EligMbrs_SecondIter ON dbo_MEMBER_PCP.MEMBER_ID = EligMbrs_SecondIter.MEMBER_ID;
Query Results currently look like this;
MemberID---ProviderID---MbrPCPBegDt----ProvName
12345-------90567--------1/1/08---------JaneSmith
12345-------90456--------3/4/08---------JillSmith