0% found this document useful (0 votes)
32 views

Queery 1

This SQL query selects employee data from multiple tables including employee number, name, absence dates and attributes, and payroll ID where the effective dates include the current date and absence started in 2022 for a specific absence type and payroll.

Uploaded by

nani2003
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

Queery 1

This SQL query selects employee data from multiple tables including employee number, name, absence dates and attributes, and payroll ID where the effective dates include the current date and absence started in 2022 for a specific absence type and payroll.

Uploaded by

nani2003
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

select employee_number, full_name ,abs.date_start, abs.date_end,abs.

attribute1
resumption_date,abs.attribute3 adv_flag,abs.ATTRIBUTE4 process_date
,payroll_id

from per_all_people_f papf,


per_all_assignments_f paaf,
per_absence_attendances abs

where papf.person_id = abs.person_id


and papf.person_id = paaf.person_id
and :p_sysdate between papf.effective_start_date and papf.effective_end_date
and :p_sysdate between paaf.effective_start_date and paaf.effective_end_date
and current_employee_flag = 'Y'
and abs.date_start >= to_date('01/01/2022','dd/mm/yyyy')
--and employee_number = 201
and absence_attendance_type_id = 61
and paaf.payroll_id = 61
and abs.attribute3 is null

order by date_start

You might also like