kodaksmile
MIS
I am trying to select values from a table that has multiple records for each employee -- what I want to do is just grab the record that has the most recent effective date. Below is what I have tried but, it only returns 1 record which is the employee with the most recent effective date but, I need 1 record for each employee....
select ejheeid, ejhhourlypayrate, ejhannsalary
from emphJob
where ejhjobeffdate=(select max(x.ejhjobeffdate) from emphjob as x)
Any suggestions????
Thanks for your help!!!
select ejheeid, ejhhourlypayrate, ejhannsalary
from emphJob
where ejhjobeffdate=(select max(x.ejhjobeffdate) from emphjob as x)
Any suggestions????
Thanks for your help!!!