I have a view returning a list of checks and related employee information. The important fields here are CheckDate, CheckAmt, EmployeeID, and EmployeeTermDate. I need to return the last check for employees that have been terminated (EmployeeTermDate not NULL). However the view returns all checks for terminated employees. I only need the last check processed (max(CheckDate)).
The where clause is something like:
where EmployeeTermDate is not NULL and CheckDate = "max checkdate for a given employee"
I'm not certain how to get the last check date for each individual employee.
Thank you.
Tim
Tim Roop
"If you can do something about it, why waste time getting upset? If you can't do anything about it, why bother getting upset on top of it? -Shantideva
The where clause is something like:
where EmployeeTermDate is not NULL and CheckDate = "max checkdate for a given employee"
I'm not certain how to get the last check date for each individual employee.
Thank you.
Tim
Tim Roop
"If you can do something about it, why waste time getting upset? If you can't do anything about it, why bother getting upset on top of it? -Shantideva