D
dmeiser
Hello:
I need to display historic pay information for employees. I have 3
tables:
1) Job Category & Description,
2) Employee Name, Job Cat, Job Cat Start & End Date (lateral movement),
Date of Hire
3) Job Cat, pay rates at: Start, 6 mo., 1 yr., 2 yr.
So, what I need to do is have the query look like this:
job cat :: name :: mmm yyyy :: mmm yyyy :: ...
Sample information would be like this:
1 :: Joe Jim Bob :: Pay Rate This Month :: Hourly Rate This Month ::
....
Where hourly pay is selected out of table 3 based upon the date
difference between the date of hire and the column name ( e.g. -
Somebody hired in Sept 2003 would be selected out of the "2 yr" column,
and somebody hired yesterday would be selected out of the "Start"
column ).
I'm using a crosstab query and the only thing yet to be accomplished is
getting the date difference between the column name and the start date.
I would not be offended if somebody told me that there is a) a better
way to do this, or b) that I'm stupid for even trying this.
Thank you,
Dave
I need to display historic pay information for employees. I have 3
tables:
1) Job Category & Description,
2) Employee Name, Job Cat, Job Cat Start & End Date (lateral movement),
Date of Hire
3) Job Cat, pay rates at: Start, 6 mo., 1 yr., 2 yr.
So, what I need to do is have the query look like this:
job cat :: name :: mmm yyyy :: mmm yyyy :: ...
Sample information would be like this:
1 :: Joe Jim Bob :: Pay Rate This Month :: Hourly Rate This Month ::
....
Where hourly pay is selected out of table 3 based upon the date
difference between the date of hire and the column name ( e.g. -
Somebody hired in Sept 2003 would be selected out of the "2 yr" column,
and somebody hired yesterday would be selected out of the "Start"
column ).
I'm using a crosstab query and the only thing yet to be accomplished is
getting the date difference between the column name and the start date.
I would not be offended if somebody told me that there is a) a better
way to do this, or b) that I'm stupid for even trying this.
Thank you,
Dave