DBA Data[Home] [Help]

APPS.PER_INC_BUS SQL Statements

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

Line: 27

      select null
       from per_work_incidents inc
            ,per_people_f per
            ,hr_organization_information hoi
      where inc.incident_id = p_incident_id
        and per.person_id = inc.person_id
        and hoi.organization_id = per.business_group_id
        and hoi.org_information_context||'' = 'Business Group Information';
Line: 90

    select pbg.legislation_code
      from per_work_incidents inc,
      per_people_f per,
      per_business_groups pbg
     where inc.incident_id = p_incident_id
       and inc.person_id = per.person_id
       and per.business_group_id = pbg.business_group_id;
Line: 535

Procedure chk_non_updateable_args
  (p_effective_date               in date
  ,p_rec in per_inc_shd.g_rec_type ) IS
--
  l_proc     varchar2(72) := g_package || 'chk_non_updateable_args';
Line: 575

End chk_non_updateable_args;
Line: 619

    select null
    from per_people_f per
    where per.person_id = p_person_id
    and p_effective_date between per.effective_start_date
                         and per.effective_end_date;
Line: 789

    SELECT next_value
      FROM per_us_osha_numbers
      WHERE case_year       = p_year
      AND business_group_id = p_bg_id
      FOR UPDATE OF next_value NOWAIT;
Line: 823

    UPDATE per_us_osha_numbers
      SET next_value = next_value+1
      WHERE CURRENT OF csr_num;
Line: 874

 select null
 from per_work_incidents pwi
 where upper(pwi.incident_reference) = upper(p_incident_reference);
Line: 1084

 select null
 from per_work_incidents pwi
 where pwi.incident_id = p_related_incident_id
 and pwi.person_id = p_person_id
 and pwi.incident_date <= p_incident_date;
Line: 1823

  select null
  from per_all_people_f paf
  where paf.person_id = p_person_reported_by
  and paf.business_group_id = p_business_group_id
  and nvl(p_report_date, paf.effective_start_date)
     between paf.effective_start_date and paf.effective_end_date;
Line: 2007

  select null
  from per_all_people_f paf
  where paf.person_id = p_notified_hsrep_id
  and paf.business_group_id = p_business_group_id
  and nvl(p_notified_hsrep_date, paf.effective_start_date)
     between paf.effective_start_date and paf.effective_end_date;
Line: 2124

  select null
  from hr_all_organization_units hou
  where  hou.organization_id = p_notified_rep_org_id
   and hou.internal_external_flag = 'EXT'
   and hou.business_group_id = p_business_group_id
   and nvl(p_notified_rep_date, hou.date_from) between hou.date_from
                      and nvl(hou.date_to,hr_general.end_of_time)
   and p_notified_rep_org_id in (select hoi.organization_id
                                 from hr_organization_information hoi
                                 where hoi.org_information_context = 'CLASS'
                                 and hoi.org_information1 = 'REPBODY'
                                 and hoi.org_information2 = 'Y');
Line: 2141

  select null
  from per_all_people_f paf, per_roles rol
  where paf.person_id = p_notified_rep_id
  and paf.business_group_id = p_business_group_id
  and paf.person_id = rol.person_id
  and rol.organization_id = p_notified_rep_org_id
  and nvl(p_notified_rep_date, paf.effective_start_date)
     between paf.effective_start_date and paf.effective_end_date
  and nvl(p_notified_rep_date, rol.start_date)
     between rol.start_date and nvl(rol.end_date,hr_general.end_of_time);
Line: 2419

    select null
    from per_all_assignments_f asg
    where asg.assignment_id = p_assignment_id
    and asg.person_id = p_person_id
    and p_incident_date between asg.effective_start_date
                         and asg.effective_end_date;
Line: 2664

Procedure insert_validate
  (p_effective_date               in date
  ,p_rec                          in per_inc_shd.g_rec_type
  ) is
--
  cursor csr_bg is
    select business_group_id
    from per_all_people_f
    where person_id = p_rec.person_id;
Line: 2674

  l_proc  varchar2(72) := g_package||'insert_validate';
Line: 2875

End insert_validate;
Line: 2880

Procedure update_validate
  (p_effective_date               in date
  ,p_rec                          in per_inc_shd.g_rec_type
  ) is
--
  cursor csr_bg is
    select business_group_id
    from per_all_people_f
    where person_id = p_rec.person_id;
Line: 2891

  l_proc  varchar2(72) := g_package||'update_validate';
Line: 2900

  chk_non_updateable_args
    (p_effective_date              => p_effective_date
     ,p_rec                        => p_rec);
Line: 3062

End update_validate;
Line: 3067

Procedure delete_validate
  (p_rec                          in per_inc_shd.g_rec_type
  ) is
--
  l_proc  varchar2(72) := g_package||'delete_validate';
Line: 3085

End delete_validate;
Line: 3094

        select incident_reference
        from    per_work_incidents pwi
        where   pwi.incident_id = p_incident_id;
Line: 3129

         select business_group_id
         from   hr_all_organization_units units
               ,hr_organization_information org
         where  units.organization_id = org.organization_id
         --and    units.type            = 'BG'
         and    mod(business_group_id,p_number_of_workers) = p_current_worker-1
         and    org.org_information_context = 'Business Group Information'
         and    org.org_information9 = 'US'
         and    not exists (select null from per_us_osha_numbers osha
                            where osha.business_group_id = units.business_group_id
                            and   osha.case_year         = 1900
                            );
Line: 3143

  l_proc  varchar2(72) := g_package||'delete_validate';
Line: 3159

      insert into per_us_osha_numbers(
                      case_year,
                      business_group_id,
                      next_value,
                      last_update_date,
                      last_updated_by,
                      last_update_login,
                      created_by,
                      creation_date)
              values (x,
                      i.business_group_id,
                      1,
                      trunc(sysdate),
                      -1,
                      0,
                      -1,
                      trunc(sysdate)
                      );