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 |
---|---|---|
Component interface Error: no rows exist for the specified keys | PeopleSoft Technical | 03/15/2019 - 3:54am |
ADD 24 months starting from current month.(peoplesoft) | PeopleSoft Functional | 07/29/2018 - 8:44pm |
TRC values dropdown | PeopleSoft Technical | 04/04/2018 - 12:54am |
how to find missing sequence in GRID and print the mising sequence number while saving through peoplecode | PeopleSoft Technical | 09/11/2017 - 4:49am |
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?