DBA Data[Home] [Help]

APPS.PAY_AU_LEAVE_LIABILITY SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 44

    l_sql := 'select distinct p.person_id '                                 ||
               'from per_people_f p '                                       ||
                   ',pay_payroll_actions pa '                               ||
                   ',per_assignments_f a '                                  ||
                   ',pay_element_entries_f ee '                             ||
                   ',pay_element_links_f el '                               ||
                   ',pay_accrual_plans ap '                                 ||
              'where pa.payroll_action_id = :payroll_action_id '            ||
                'and p.business_group_id = pa.business_group_id '           ||
                'and a.person_id = p.person_id '                            ||
                'and a.payroll_id is not null '                             ||
                'and ee.assignment_id = a.assignment_id '                   ||
                'and el.element_link_id = ee.element_link_id '              ||
                'and ap.accrual_plan_element_type_id = el.element_type_id ' ||
                'and ap.accrual_category In (select accrual_category '      ||
                                            'from   pay_au_processes '      ||
                                            'where  accrual_category is not null ' ||
                                            'and legislation_code = ''AU'') ' ||
                'and pa.effective_date between p.effective_start_date '     ||
                                          'and p.effective_end_date '       ||
                'and pa.effective_date between a.effective_start_date '     ||
                                          'and a.effective_end_date '       ||
                'and pa.effective_date between ee.effective_start_date '    ||
                                          'and ee.effective_end_date '      ||
                'and pa.effective_date between el.effective_start_date '    ||
                                          'and el.effective_end_date '      ||
             'order by '                                                    ||
                    'p.person_id ' ;
Line: 105

      select distinct a.assignment_id
      from   pay_payroll_actions pa
      ,      per_assignments_f a
      ,      pay_element_entries_f ee
      ,      pay_element_links_f el
      ,      pay_accrual_plans ap
      where  pa.payroll_action_id = p_payroll_action_id
      and    a.business_group_id = pa.business_group_id
      and    a.person_id between p_start_person_id
                             and p_end_person_id
      and    a.payroll_id is not null
      and    ee.assignment_id = a.assignment_id
      and    el.element_link_id = ee.element_link_id
      and    ap.accrual_plan_element_type_id = el.element_type_id
      and    ap.accrual_category IN (select  accrual_category
                                     from    pay_au_processes
                                     where   legislation_code = 'AU'
                                     and     accrual_category is not null)
      and    pa.effective_date between a.effective_start_date
                                   and a.effective_end_date
      and    pa.effective_date between ee.effective_start_date
                                   and ee.effective_end_date
      and    pa.effective_date between el.effective_start_date
                                   and el.effective_end_date ;
Line: 131

      select pay_assignment_actions_s.nextval
      from   dual ;
Line: 211

      select p.process_id
      from   pay_au_processes p
      where  p.short_name = p_short_name
      and    p.legislation_code = 'AU' ;
Line: 217

      select pa.business_group_id
      ,      pa.payroll_action_id
      ,      aa.assignment_id
      from   pay_assignment_actions aa
      ,      pay_payroll_actions pa
      where  aa.assignment_action_id = p_assignment_action_id
      and    pa.payroll_action_id = aa.payroll_action_id ;
Line: 226

      select ap.accrual_plan_id
      ,      ap.accrual_category
      ,      a.payroll_id
      from   pay_assignment_actions aa
      ,      pay_payroll_actions pa
      ,      per_assignments_f a
      ,      pay_element_entries_f ee
      ,      pay_element_links_f el
      ,      pay_accrual_plans ap
      where  aa.assignment_action_id = p_assignment_action_id
      and    pa.payroll_action_id = aa.payroll_action_id
      and    a.assignment_id = aa.assignment_id
      and    a.payroll_id is not null
      and    ee.assignment_id = a.assignment_id
      and    el.element_link_id = ee.element_link_id
      and    ap.accrual_plan_element_type_id = el.element_type_id
      and    ap.accrual_category in (select accrual_category
                                     from   pay_au_processes
                                     where  legislation_code = 'AU'
                                     and    accrual_category is not null)
      and    pa.effective_date between a.effective_start_date
                                   and a.effective_end_date
      and    pa.effective_date between ee.effective_start_date
                                   and ee.effective_end_date
      and    pa.effective_date between el.effective_start_date
                                   and el.effective_end_date ;
Line: 254

      select p.process_id
      from   pay_au_processes p
      where  p.accrual_category = p_accrual_category
      and    p.legislation_code = 'AU'
      and    p.accrual_category is not null;
Line: 367

      select f.formula_id
      from   ff_formulas_f f
      where  f.formula_name = p_formula_name
      and    ((f.business_group_id is null
      and      f.legislation_code is null)
      or      (f.business_group_id = p_business_group_id)
      or      (f.legislation_code = p_legislation_code)) ;
Line: 382

        select m.module_id
        from   pay_au_modules m
        where  m.formula_name = p_formula_name
        and    m.enabled_flag = 'Y'
        and    ((m.business_group_id is null
        and      m.legislation_code is null)
        or      (m.business_group_id = p_business_group_id)
        or      (m.legislation_code = p_legislation_code)) ;