psycoperl
Active Member
- Joined
- Oct 23, 2007
- Messages
- 339
- Office Version
- 365
- 2016
- Platform
- Windows
- MacOS
- Web
I am trying to obtain the most recent record for each StudentID. tnDateEntered is a date/time that contains a timestamp. I can not determine how to modify the query below.
Guidance is appreciated.
Guidance is appreciated.
Code:
SELECT
tblStudentTestNeeds.tnRecordID,
tblStudentTestNeeds.tnStudentID,
tblTestInfo.tiOfficeDescription,
tblStudentTestNeeds.tnTestCode,
tblStudentTestNeeds.tnDateEntered
FROM
tblTestInfo INNER JOIN tblStudentTestNeeds
ON tblTestInfo.tiTestID = tblStudentTestNeeds.tnTestCode
ORDER BY tblStudentTestNeeds.tnDateEntered DESC;
Last edited: