L
lamont
Please help with the following:
I have an employee history table with the following columns:
EMPLID, EFFDT, ACTION
As an example:
1234, 12/31/2004, HIR --as an employee's hire row
This table keeps the history of different HR transactions against employees.
So it can have mulitiple rehire and termination rows for the same
emplid.
Using a select statement, is there a way to pull total years
employed...accounting for those who leave and come back too?
Example:
EMPLID, EFFDT, ACTION
0013, 10/01/1979, HIR
0013, 09/10/1985, TER
0013, 09/25/1990, REH
0013, 01/30/2000, TER
0013, 07/25/2003, REH
How do I get the total years employed using a select statement or query from
the above example?
Thanks a ton!
I have an employee history table with the following columns:
EMPLID, EFFDT, ACTION
As an example:
1234, 12/31/2004, HIR --as an employee's hire row
This table keeps the history of different HR transactions against employees.
So it can have mulitiple rehire and termination rows for the same
emplid.
Using a select statement, is there a way to pull total years
employed...accounting for those who leave and come back too?
Example:
EMPLID, EFFDT, ACTION
0013, 10/01/1979, HIR
0013, 09/10/1985, TER
0013, 09/25/1990, REH
0013, 01/30/2000, TER
0013, 07/25/2003, REH
How do I get the total years employed using a select statement or query from
the above example?
Thanks a ton!