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.
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 ratings0% 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.
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