You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

SQL to get Accrual Plan Balance

Summary:

SQL to get Accrual Plan Balance

Content (please ensure you mask any confidential information):

Hi,

I am trying to get the Accrual Plan Balance just as shown in the screen. I am neither able to achieve it through OTBI analysis nor through SQL query.

I am only able to get -21 using below SQL:

select sum(value) from (
SELECT PAPF.PERSON_NUMBER,
APAED.PROCD_DATE,
APAED.VALUE
FROM PER_ALL_PEOPLE_F PAPF,
ANC_PER_PLAN_ENROLLMENT APPE,
ANC_PER_ACRL_ENTRY_DTLS APAED,
ANC_ABSENCE_PLANS_F_TL AAPFT
WHERE PAPF.PERSON_ID = APPE.PERSON_ID
AND APPE.PERSON_ID = APAED.PERSON_ID

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!