wrightyrx7
Registered User.
- Local time
- Today, 06:02
- Joined
- Sep 4, 2014
- Messages
- 104
Hi all,
I have the following query to get the most recent record for each person.
However I need it to pull out multiple records if the SUP_START_DTC is the same for the person because people can have more than one.
In addition would it be possible to pull through additional fields from the CHRISCS_EMSUP table? Because this returns the employee number and start date. And for people with multiple records (that have same start date) i will not know which record relates to what.
Thanks in advance
Chris
I have the following query to get the most recent record for each person.
Code:
SELECT DET_NUMBERA, Max(SUP_START_DTC) AS [Start Date]
FROM CHRISCS_EMSUP
GROUP BY DET_NUMBERA;
However I need it to pull out multiple records if the SUP_START_DTC is the same for the person because people can have more than one.
In addition would it be possible to pull through additional fields from the CHRISCS_EMSUP table? Because this returns the employee number and start date. And for people with multiple records (that have same start date) i will not know which record relates to what.
Thanks in advance
Chris