Jumat, 21 September 2018

[MS_AccessPros] Need to stop duplicate records

 

I have the following query:

SELECT qryApplicantExtended.ApplicantID, qryApplicantExtended.[Applicant Name], tlkpApplicationType.ApplicationTypeName, qryApplicantExtended.HomePhone, tlkpGender.GenderName, qryApplicantExtended.MobilePhone, qryApplicantExtended.WorkPhone, tblApplication.AppReceivedDate, tblApplication.AppReceivedTime
FROM ((qryApplicantExtended INNER JOIN tlkpApplicationType ON qryApplicantExtended.ApplicationTypeID = tlkpApplicationType.ApplicationTypeID) INNER JOIN tlkpGender ON qryApplicantExtended.GenderID = tlkpGender.GenderID) LEFT JOIN tblApplication ON qryApplicantExtended.ApplicantID = tblApplication.ApplicantID
WHERE (((qryApplicantExtended.ApplicantStatusTypeID)=4))
ORDER BY qryApplicantExtended.LastName;


Which is returning duplicate applicants. I understand why its happening. It because and applicant can have more then one application. How can I get it to return the latest application which would eliminate duplicate?

Thank you 

Art Lorenzini
Sioux Falls, SD

__._,_.___

Posted by: dbalorenzini@yahoo.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


SPONSORED LINKS
.

__,_._,___

Tidak ada komentar:

Posting Komentar