Countymnca
Technical User
Hello,
I have a db that tracks employee movement (promotion, demotion, transfer, resign, rehire, etc) within a large organization. Each movement is recorded by the employee number, date, type of movement, and new position number. Initally I created a query that is supposed to pull the Last employee movement date, but noticed it didnt work properly in some case. I changed it to pull the max date and that fixed alot of incorrect pulls.
I know notice that if the employee's last movement date was <1/1/2000 that it pulls the lowest date instead of the max. Last and Max both do this.
For example,
If the last employee movement date was 6/5/99 when they were promoted, and they had a hire date of 1/5/97, it will show 1/5/97 in the query. If I enter in a new movement for them that falls in 2000 or later (2/5/2001) and rerun the query, it pulls 2/5/01.
What is the difference between Max and Last and why does dates <2000 affect the results?
Thanks in advance....
I have a db that tracks employee movement (promotion, demotion, transfer, resign, rehire, etc) within a large organization. Each movement is recorded by the employee number, date, type of movement, and new position number. Initally I created a query that is supposed to pull the Last employee movement date, but noticed it didnt work properly in some case. I changed it to pull the max date and that fixed alot of incorrect pulls.
I know notice that if the employee's last movement date was <1/1/2000 that it pulls the lowest date instead of the max. Last and Max both do this.
For example,
If the last employee movement date was 6/5/99 when they were promoted, and they had a hire date of 1/5/97, it will show 1/5/97 in the query. If I enter in a new movement for them that falls in 2000 or later (2/5/2001) and rerun the query, it pulls 2/5/01.
What is the difference between Max and Last and why does dates <2000 affect the results?
Thanks in advance....