I have a table with these fields: employee ID, effective on date and supervisor ID.
Whenever an employee's supervisor changes, a new record is created with these fields. I need to retrieve the prior supervisor's ID for each employee. How would I pull the second latest effective on date for each employee?
Whenever an employee's supervisor changes, a new record is created with these fields. I need to retrieve the prior supervisor's ID for each employee. How would I pull the second latest effective on date for each employee?
Comment