×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Compensation Rate at Hire

Compensation Rate at Hire

Compensation Rate at Hire

(OP)
I need to add a row of compensation Data to my report.  I have a basic roster with current Hrly rate.  I need to add Hrly rate when hired or as of the job title change that matches the current job title.  Seems tricky to me, but it is really late...help, please.

ADP Enterprise-Oracle

RE: Compensation Rate at Hire

Hi Theredia,

I have something that will work for you.  First, some assumptions.  I am assuming you are using the PS_JOB table and have PAYGROUP and FILE_NBR selected for your report or at least for query only.  Next, if you don't already have a table alias assigned for this table, please assign a J as the alias.  It's simple and hard to misspell.  :)

Next, create a new derived field - I called mine HIRE_RATE.

Paste this into the formula box:

(
 SELECT JOB.ANNUAL_RT
 FROM PS_JOB JOB
 WHERE (( (TO_CHAR(JOB.EFFDT, 'YYYYMMDD') || JOB.EFFSEQ = (
           SELECT MIN(TO_CHAR(i.EFFDT, 'YYYYMMDD') || i.EFFSEQ)
           FROM PS_JOB i
           WHERE JOB.EMPLID = i.EMPLID
             AND JOB.EMPL_RCD_NBR = i.EMPL_RCD_NBR)) AND
 (JOB.PAYGROUP = J.PAYGROUP) AND
 (JOB.FILE_NBR = J.FILE_NBR) ))
)

Remember the open and closed () and there should be a space before each line of the formula code.

This formula will select the ANNUAL_RT field from the PS_JOB table and give it the JOB alias.  It is using a SELECT MIN SQL statement to get the minimum row from the PS_JOB table.  The last two lines uses 2 key fields to connect itself back to the PS_JOB table you already have in your report.

I hope this helps.  If you have any questions, feel free to contact me directly at RSGEEK @ WI . RR . COM

Tammy
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close