select
ppf.employee_number "Employee Number",
--
ppp.change_date "From",
ppp.proposed_salary_n "Salary",
(ppp.proposed_salary_n*12) "Annual Salary",
(ppp.proposed_salary_n*12) "FT Annual Salary",
per_saladmin_utility.get_fte_factor (ppp.assignment_id,ppp.change_date) "FTE Factor",
hr_general.decode_lookup ('PER_SAL_PROPOSAL_STATUS', approved) "Status",
ppp.next_perf_review_date "Next Salary Review",
hr_general.decode_lookup ('PROPOSAL_REASON', proposal_reason) "Reason For Change",
ppp.date_to "To",
--
ppp.pay_proposal_id,
ppp.assignment_id,
ppp.event_id,
ppp.business_group_id
--
from
per_pay_proposals ppp,
per_performance_reviews ppr,
per_assignments_f2 paa,
per_people_f ppf,
per_pay_bases ppb,
pay_input_values_f piv,
pay_element_types_f pet
where
1=1
and ppp.performance_review_id =ppr.performance_review_id(+)
and ppp.assignment_id = paa.assignment_id
and paa.person_id = ppf.person_id
and sysdate between ppp.change_date and nvl (ppp.date_to, hr_general.end_of_time)
and ppp.change_date between paa.effective_start_date and paa.effective_end_date
and paa.pay_basis_id(+) = ppb.pay_basis_id
and ppb.input_value_id = piv.input_value_id
and piv.element_type_id = pet.element_type_id
and ppp.change_date between piv.effective_start_date and piv.effective_end_date
and ppp.change_date between pet.effective_start_date and pet.effective_end_date
--
and ppf.employee_number = '1309'
order by
1,2,3;
No comments:
Post a Comment