I am trying to build some turnover reporting and am having some issues. The way our system work is if an employee is put on Severance then their status is changed to 313. Once they come off Severance they are then assigned a turnover code which is >399.
What I need is a query that will give me the employees who have been assigned a 313 and their "Severance Date". If the severed employee has gone through the full process then I only want the severance date and not the "termdate" which is the date they were given the code >399. If the employee has never been on severance then i need that employee with their termdate also. I am mainly having trouble with getting only the Severance date if the employee has been severed and also given a term code.
I have attached a small db with the queries for severance and also terminated.
I would appreciate any help offered.