SELECT TO_CHAR (SYSDATE, 'FMMonth dd , YYYY') request_date --REPLACE (TO_CHAR (SYSDATE, ' ddth FMMon, YYYY'),' 0','') request_da te, ,REPLACE (TO_CHAR

(g.effective_start_date, ' ddth FMMon, YYYY'),' 0', '' ) effective_date ,a.employee_number, a.title, full_name, last_name, first_name, middle _names ,REPLACE (TO_CHAR (start_date, ' ddth FMMon, YYYY'), ' 0','') hire_da te ,SUBSTR (e.NAME,INSTR (e.NAME, '.') + 1,(INSTR (e.NAME, '.', 1, 3) INSTR (e.NAME, '.', 1, 1) - 1) ) POSITION ,c.NAME ORGANIZATION, a.attribute4 salary_band ,a.attribute5 reward_level ,DECODE (f.NAME, 'Oando Marketing', 'Oando Marketing Plc, a subsidiary of Oando PL C', 'Oando Energy Services', 'Oando Energy Services Limited, a subsid iary of Oando PLC', 'Gaslink Nigeria', 'Oando Gas and Power Limited, a subsidiary of Oando PLC', 'OEPL Salary Basis', 'Oando Exploration and Production Limited, a subsidiary of Oando PLC', 'Oando Shared Services', 'Shared Services', 'KLP Salary Basis', 'Oando Marketing Limited, a subsidiary of Oan do PLC', 'Oando Aviation', 'Oando Marketing Limited, a subsidiary of Oando PLC', 'Oando Group', 'Group Office', 'Supply and Trading', 'Oando Supply and Trading Limited, a subsid iary of Oando PLC', 'OST New Salary Basis', 'Oando Supply and Trading Limited, a subs idiary of Oando PLC' ) entity ,DECODE (f.NAME, 'Oando Marketing', 'Oando Marketing PLC', 'Oando Energy Services', 'Oando Energy Services Limited', 'Gaslink Nigeria', 'Oando Gas and Power Limited', 'OEPL Salary Basis', 'Oando Exploration and Production Limite d', 'Oando Shared Services', 'Shared Services', 'KLP Salary Basis', 'Oando Marketing PLC', 'Oando Aviation', 'Oando Marketing PLC', 'Oando Group', 'Group Office', 'Supply and Trading', 'Oando Supply and Trading Limited', 'OST New Salary Basis', 'Oando Supply and Trading Limited' ) entity_add --,'NGN' TRIM (TO_CHAR (h.screen_entry_value, '999,999,999.99')) gross_salary -- ,'NGN' TRIM(to_char(max(to_number(j.screen_entry_value)),'999, 999,999.99')) previous_gross ,decode(sex,'M','His','F','Her','N/A') sex ,CASE WHEN (start_date <= TO_DATE ( '01-JAN-' TO_CHAR (TO_DATE (TRUNC (SYSDATE - 365), 'DD-MON-RRRR' ), 'YYYY'

'' ) END profit_share_start_date .effective_start_date AND p. 'DD-MON-RR RR'). '999. 0 ) FROM pay_element_entry_values_f o.person_id)) previous_salary_band .999. ) THEN .person_id)) previous_reward_level . (SELECT NVL (attribute4.effective_end_da te AND SYSDATE BETWEEN p.assignment_id = g.effective_end_da te AND SYSDATE BETWEEN q. pay_element_entries_f p.person_id AND effective_end_date != '31-DEC-4712' AND effective_end_date = (SELECT MAX (effective_end_date) FROM per_all_people_f WHERE effective_end_date != '31-DEC-4712' AND person_id = a. pay_element_types_f q WHERE o.99')) FROM apps. 'DD-MON-RRRR'). (SELECT 'NGN' NVL (TRIM (TO_CHAR (screen_entry_value. (SELECT 'NGN' TRIM (TO_CHAR (element_value.999.effective_start_date AND q. YYYY'). '999. ' TO_CHAR (TO_DATE (TRUNC (SYSDATE .element_entry_id = p.365).xxoando_reward_elements WHERE element_description = 'Profit Sharing Plan Payout' AND employee_number = a.employee_number AND report_year = TO_CHAR (TO_DATE (TRUNC (SYSDATE . '-') salary_band FROM per_all_people_f WHERE person_id = a.365).effective_end_da te AND UPPER (element_name) LIKE '%BENEFIT%KIND%') benefit_in_kind . 'YYYY') profit_share_end_date . '-') salary_band FROM per_all_people_f WHERE person_id = a. 'DD-MON-RRRR' ).effective_start_date AND o.person_id AND effective_end_date != '31-DEC-4712' AND effective_end_date = (SELECT MAX (effective_end_date) FROM per_all_people_f WHERE effective_end_date != '31-DEC-4712' AND person_id = a.) ) 'January 1. ' ddth FMMon.365). ' TO_CHAR (TO_DATE (TRUNC (SYSDATE .999. 'YYYY' ) ELSE REPLACE (TO_CHAR (start_date.element_type_id AND p.element_type_id = q.(SELECT NVL (attribute5.element_entry_id AND p.999.assignment_id AND SYSDATE BETWEEN o. ' 0'.99') ).'December 31.

effective_start_date AND i.assignment_id = g.person_id = b.'999. 'YYYY') YEAR.effective_start_date AND g.99' )) FROM pay_element_entry_values_f where element_entry_id = 73083 AND effective_end_date != '31-DEC4712' ) previous_gross .effective_start_date AND b.99')) FROM DUAL) profit_sharing FROM per_all_people_f a. 'DD-MON-RRRR').organization_id = c. 'YYYY') year_start_date.apps. per_all_assignments_f b.effective_end_date AND SYSDATE BETWEEN i.organization_id AND b.pay_basis_id AND b.99' )) FROM pay_element_entry_values_f where element_entry_id = 73083 /*AND effective_end_date != '31-DE C-4712'*/) current_gross 'YYYY' )) profit_sharing .effective_start_date AND h.employee_number(+) AND SYSDATE BETWEEN a. 'DD-MON-RRRR').effective_start_date AND a.element_entry_id 'NGN' TRIM (TO_CHAR (MAX (TO_NUMBER(screen_entry_value) .effective_end_date --AND SYSDATE BETWEEN h. pay_element_types_f i --.element_type_id = i.assignment_id -.xxoando_reward_elements j WHERE a. per_pay_bases f. per_positions e. */ --.'999.effective_end_date AND SYSDATE BETWEEN b. (SELECT 'NGN' TRIM (TO_CHAR (j. hr_all_organization_units c. 'YYYY' ) previous_year /*. ' TO_CHAR (TO_DATE (TRUNC (SYSDATE).365). TO_CHAR (TO_DATE (TRUNC (SYSDATE).(SELECT ). 'YYYY') year_end_date. 'DD-MON-RRRR'). pay_element_entries_f g. ' TO_CHAR (TO_DATE (TRUNC (SYSDATE). 'December 31. 'DD-MON-RRRR').g.position_id(+) = e.employee_number = j.person_id AND b.999.effective_end_date AND person_type_id = 6 AND UPPER (i.(SELECT 'NGN' TRIM (TO_CHAR (MAX (TO_NUMBER(screen_entry_valu e)).999.element_entry_id AND g. '999.position_id AND b. 'January 1..999.element_type_id --AND a.AND g.999. --pay_element_entry_values_f h.999.effective_end_date AND SYSDATE BETWEEN g.element_value. TO_CHAR (TO_DATE (TRUNC (SYSDATE .pay_basis_id = f.element_name) LIKE '%GROSS%' and employee_number = :P_Employee_Number .999.element_entry_id = h.

Sign up to vote on this title
UsefulNot useful