select
ppf.employee_number "Employee Number",
--
pus.state_name "State",
puc.county_name "County",
hrl.meaning "W4 Info: Filing Status",
ctr.withholding_allowances "W4 Info: Allowances",
ctr.lit_additional_tax "W4 Info: Additional Tax",
ctr.additional_wa_rate "W4 Info:Add Alllow Rate",
ctr.lit_exempt "Tax Ex:Local Income",
ctr.sd_exempt "Tax Ex:School District",
ctr.ht_exempt "Tax Ex: Occu Privilage",
ctr.lit_override_rate "LIT Override: Rate",
ctr.lit_override_amount "LIT Override: Amount",
psd.school_dst_name "School District",
ctr.wage_exempt "LIT Ex from Wge Accu",
ctr.effective_start_date "Effective Dates: From",
decode (ctr.effective_end_date,
to_date ('31124712', 'DDMMYYYY'), null,
ctr.effective_end_date) "Effective Dates: To",
--
ctr.assignment_id
from
pay_us_emp_county_tax_rules_f ctr,
pay_us_states pus,
pay_us_counties puc,
hr_lookups hrl,
pay_us_county_school_dsts psd,
per_all_assignments_f paaf,
per_people_f ppf
where
1=1
and ctr.state_code = pus.state_code
and ctr.state_code = puc.state_code
and ctr.county_code = puc.county_code
and ctr.filing_status_code = hrl.lookup_code
and hrl.lookup_type = 'US_LIT_FILING_STATUS'
and ctr.state_code = psd.state_code(+)
and ctr.county_code = psd.county_code(+)
and ctr.school_district_code = psd.school_dst_code(+)
and ctr.assignment_id = paaf.assignment_id
and nvl(paaf.effective_end_date,sysdate)>sysdate-1
and paaf.person_id = ppf.person_id
--
and ppf.employee_number='1309'
order by
1,2;
No comments:
Post a Comment