Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ReportSmith - selecting the current row in Benefits 1

Status
Not open for further replies.

ctreports

Technical User
Oct 10, 2006
6
US
I have tried and tried to do a report that will pull ONLY the current Benefit program row. I have called the support desk at ADP and they said there is no way. Surely, someone has an idea? I would be so grateful. Thank you.
 
I am using the job, personal_data, employment, and ben_prog_partic tables.
 
What you would need to do is write your own effdt selection critera using EVENT_DT as if it were EFFDT. What you could do is create a report using the JOB table and copy the SQL out of it and modify it to work with the ben_prog_partic table. You really need to know what you are doing to do this. This is where it is worth the money to hire a consultant.

Specializing in ReportSmith Training and Consulting
 
Ah - I knew it would be tough..... thanks for your help.
 
You probally using the PS_BEN_PROG_PARTIC TABLE. You want to assign the table an alais of "A". In selection, insert an selection that states:
Data Field EVENT_DT TO FORMULA. Click on the line at the end and copy and paste the below statement.

(SELECT MAX(B.EVENT_DT) FROM PS_BEN_PROG_PARTIC B
WHERE A.EMPLID = B.EMPLID)

This will bring back the most current Event Date which will return the current Benefit Program for that date.




Artie Dunnings
ADTECH Consulting Inc
HRIS Functional & Technical Trainer
Alpharetta, GA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top