Hi, I've checked the forums and have seen this answered but I can't seem to get it working. I'm trying return the Max Date. Here's my SQL
Here are my records:
MaxOfChangeDate tblSalaryID Rate
10/4/2004 29 GF
10/4/2004 30 AGF
10/4/2004 31 F
10/4/2004 32 JW
10/4/2005 34 JW
10/5/2005 35 GF
I want to return only the latest date. So I would have a total 4 records.
Thanks, Jim
Code:
SELECT Max(tblSalary.ChangeDate) AS MaxOfChangeDate, tblSalary.tblSalaryID, tblRates.Rate
FROM tblRates INNER JOIN tblSalary ON tblRates.tblRateID = tblSalary.tblRateID
GROUP BY tblSalary.tblSalaryID, tblRates.Rate;
Here are my records:
MaxOfChangeDate tblSalaryID Rate
10/4/2004 29 GF
10/4/2004 30 AGF
10/4/2004 31 F
10/4/2004 32 JW
10/4/2005 34 JW
10/5/2005 35 GF
I want to return only the latest date. So I would have a total 4 records.
Thanks, Jim