FireGeek21
Technical User
I need to do a report on job history that will show the previous job and department on one line with the current job and department along with the effective date of the change.
In the table, the data looks like this:
EMPLID EFFDT JOBCODE DEPT
1234 01/01/2006 100101 100
1234 02/28/2005 501100 500
1234 04/01/2009 321101 300
1234 01/01/2011 900901 900
9876 05/01/2002 600601 600
9876 05/01/2007 100101 100
9876 07/01/2011 400100 400
What I need to see is the following:
EMPLID EFFDT OLD_JOB NEW_JOB OLD_DEPT NEW_DEPT
1234 01/01/2011 321101 900901 300 900
9876 07/01/2011 100101 400100 100 400
So, I need to see the current row of data and the previous row of data per employee all on one row with the most current effective date.
I looked at the Next() and Previous() functions but found they refer to the report data and not the table data.
Suggestions? THANK YOU!!!!
FireGeek
(currently using Crystal Reports XI with Lawson 9.01)
In the table, the data looks like this:
EMPLID EFFDT JOBCODE DEPT
1234 01/01/2006 100101 100
1234 02/28/2005 501100 500
1234 04/01/2009 321101 300
1234 01/01/2011 900901 900
9876 05/01/2002 600601 600
9876 05/01/2007 100101 100
9876 07/01/2011 400100 400
What I need to see is the following:
EMPLID EFFDT OLD_JOB NEW_JOB OLD_DEPT NEW_DEPT
1234 01/01/2011 321101 900901 300 900
9876 07/01/2011 100101 400100 100 400
So, I need to see the current row of data and the previous row of data per employee all on one row with the most current effective date.
I looked at the Next() and Previous() functions but found they refer to the report data and not the table data.
Suggestions? THANK YOU!!!!
FireGeek
(currently using Crystal Reports XI with Lawson 9.01)