Hi Guys,
I have a problem with pulling the effective dated row from the ps_health_benefit table
the criteria is like COVERAGE_ELECT = ‘E’ and Max(HB.EFFDT) <= [date entered by the user on page]
I am not able to pull the correct plan type.I tried this query but its failing...Can any one of you guys let me know wher I am failing here
select plan_type from sysadm.ps_health_benefit hb where hb.emplid = '090801' and coverage_elect = 'E' and effdt =( select max(effdt) from sysadm.ps_health_benefit hb_ed where hb.emplid = hb_ed.emplid
and hb.empl_rcd = hb_ed.empl_rcd and hb.cobra_event_id = hb_ed.cobra_event_id and hb.plan_type = hb_ed.plan_type and hb.benefit_nbr = hb_ed.benefit_nbr and hb_ed.effdt < '03/04/2009');
Thanks
Vamsi
| Title | Under | Posted on |
|---|---|---|
| MD5 - SHA checksum of a file. | PeopleSoft Technical | 02/07/2012 - 5:29am |
| nVision Tabular Report through PIA with prompts | PeopleSoft Technical | 02/02/2012 - 10:07pm |
| Can we create an AE to mass update Position - Jobcode data? | PeopleSoft Technical | 01/18/2012 - 3:11am |
| Pay Components on job data can be defaulted and setup based on the rules? | PeopleSoft Functional | 01/05/2012 - 4:58am |
What is the failure you are having. Is it the statement itself or the data that it is returning?
I was able to run the statement in SQL (Toad) I just had to change the date format
from '03/04/2009' to '04-MAR-2009'.
Thanks for the reply oddsnends.
The problem here is with the data that it is returning.
Thanks,
Vamsi Krishna
What is the requirement then?
Post new comment