DBA Data[Home] [Help]

APPS.IRC_OFFER_NOTIFICATIONS_PKG SQL Statements

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

Line: 14

  select
   fnd.employee_id as applicant_id
  from
   fnd_user fnd
  where fnd.person_party_id in
     (select party_id
      from per_all_people_f
      where person_id = p_person_id
      and trunc(sysdate) between effective_start_date and effective_end_date
     );
Line: 32

  select
   usr.employee_id
  from
   fnd_user usr
  where usr.user_id = p_user_id;
Line: 44

  select max(ioh.status_change_date)
  from   irc_offer_status_history ioh
  where  ioh.offer_id = p_offer_id
  and    ioh.offer_status ='EXTENDED';
Line: 55

  select iof.applicant_assignment_id
        ,vac.name as vacancy_name
        ,vac.manager_id as manager_id
	,asg.recruiter_id as recruiter_id
        ,job.name as job_title
        ,asg.person_id as applicant_id
        ,ppf.full_name as applicant_name
        ,iof.created_by as creator_id
	,ipc.name as job_posting_title
	,ipc.job_title as ipc_job_title
  from  irc_offers iof
       ,per_all_vacancies vac
       ,per_jobs_vl job
       ,per_all_assignments_f asg
       ,per_all_people_f ppf
       ,irc_posting_contents_vl ipc
  where
      iof.offer_status = 'EXTENDED'
  and iof.vacancy_id = vac.vacancy_id
  and vac.job_id = job.job_id(+)
  and asg.assignment_id = iof.applicant_assignment_id
  and trunc(sysdate) between asg.effective_start_date and asg.effective_end_date
  and trunc(sysdate) between ppf.effective_start_date and ppf.effective_end_date
  and ppf.person_id = asg.person_id
  and iof.offer_id = p_offer_id
  and vac.primary_posting_id = ipc.posting_content_id;
Line: 88

  select vac.name as vacancy_name
        ,asg.supervisor_id as manager_id
        ,asg.recruiter_id as recruiter_id
        ,iof.created_by as creator
        ,job.name as job_title
        ,asg.person_id as applicant_id
        ,ppf.full_name as applicant_name
        ,ipc.name as job_posting_title
	,ipc.job_title as ipc_job_title
        ,iof.last_updated_by as last_updated
  from  irc_offers iof
       ,per_all_vacancies vac
       ,per_jobs_vl job
       ,per_all_assignments_f asg
       ,per_all_people_f ppf
       ,irc_posting_contents_vl ipc
  where
      iof.offer_status = 'CLOSED'
  and iof.vacancy_id = vac.vacancy_id
  and vac.job_id = job.job_id(+)
  and asg.assignment_id = iof.offer_assignment_id
  and asg.effective_start_date = (select max(effective_start_date)
                               from per_assignments_f asg2 where
                       asg.assignment_id=asg2.assignment_id
                       and asg2.effective_start_date <= trunc(sysdate))
  and trunc(sysdate) between ppf.effective_start_date
                           and ppf.effective_end_date
  and ppf.person_id = asg.person_id
  and iof.offer_id = p_offer_id
  and ipc.posting_content_id(+) = vac.primary_posting_id;
Line: 125

  select iof.offer_id
        ,nvl((iof.offer_extended_method),
	      (fnd_profile.VALUE('IRC_OFFER_SEND_METHOD'))) extended_method
        ,iof.applicant_assignment_id
        ,vac.name as vacancy_name
        ,vac.manager_id as manager_id
        ,job.name as job_title
        ,asg.person_id as applicant_id
        ,ppf.full_name as applicant_name
	,iof.expiry_date
        ,iof.created_by as creator_id
	,ipc.name as job_posting_title
        ,ipc.job_title as ipc_job_title
  from irc_offers iof
       ,per_all_vacancies vac
       ,per_jobs_vl job
       ,per_all_assignments_f asg
       ,per_all_people_f ppf
       ,irc_posting_contents_vl ipc
  where
      iof.offer_status = 'EXTENDED'
  and iof.latest_offer = 'Y'
  and iof.vacancy_id = vac.vacancy_id
  and vac.job_id = job.job_id(+)
  and asg.assignment_id = iof.applicant_assignment_id
  and trunc(sysdate) between asg.effective_start_date and asg.effective_end_date
  and trunc(sysdate) between ppf.effective_start_date and ppf.effective_end_date
  and ppf.person_id = asg.person_id
  and (iof.expiry_date between trunc(sysdate) + 0 and
                                      trunc(sysdate) + p_number_of_days)
  and vac.primary_posting_id = ipc.posting_content_id;
Line: 163

  select iof.offer_id
        ,vac.name as vacancy_name
        ,vac.manager_id as manager_id
        ,job.name as job_title
        ,asg.person_id as applicant_id
        ,ppf.full_name as applicant_name
        ,iof.created_by as creator_id
	,ipc.name as job_posting_title
        ,ipc.job_title as ipc_job_title
  from irc_offers iof
       ,per_all_vacancies vac
       ,per_jobs_vl job
       ,per_all_assignments_f asg
       ,per_all_people_f ppf
       ,irc_posting_contents_vl ipc
  where
     iof.vacancy_id = vac.vacancy_id
  and iof.offer_status = 'EXTENDED'
  and iof.latest_offer = 'Y'
  and vac.job_id = job.job_id(+)
  and asg.assignment_id = iof.applicant_assignment_id
  and trunc(sysdate) between asg.effective_start_date and asg.effective_end_date
  and trunc(sysdate) between ppf.effective_start_date and ppf.effective_end_date
  and ppf.person_id = asg.person_id
  and iof.expiry_date < trunc(sysdate) + 0
  and vac.primary_posting_id = ipc.posting_content_id;
Line: 196

  select vac.name as vacancy_name
        ,iof.created_by as creator_id
        ,job.name as job_title
        ,ppf.full_name as applicant_name
  from  irc_offers iof
       ,per_all_vacancies vac
       ,per_jobs_vl job
       ,per_all_assignments_f asg
       ,per_all_people_f ppf
  where
      iof.offer_status = 'HOLD'
  and iof.vacancy_id = vac.vacancy_id
  and vac.job_id = job.job_id(+)
  and asg.assignment_id = iof.applicant_assignment_id
  and trunc(sysdate) between asg.effective_start_date and asg.effective_end_date
  and trunc(sysdate) between ppf.effective_start_date and ppf.effective_end_date
  and ppf.person_id = asg.person_id
  and iof.offer_id = p_offer_id;
Line: 218

  select
   usr.user_name
  from
   fnd_user usr
  where usr.user_id = p_user_id;
Line: 225

  select applicant_assignment_id
    from irc_offers
   where offer_id = p_offer_id;
Line: 230

  select NLS_LANGUAGE
  from fnd_languages_vl
  where language_code = p_dft_lang;
Line: 235

  select FND_PROFILE.value_specific('ICX_LANGUAGE',usr.user_id)
  from fnd_user usr
  where EMPLOYEE_ID = l_applicant_id;
Line: 264

    select application_id
     from fnd_application
     where application_short_name = apl_short_name;
Line: 270

    SELECT responsibility_id
      FROM fnd_responsibility
      WHERE responsibility_key = resp_key
        AND application_id = apl_id;
Line: 277

    select src_apl_asg_id from per_vac_linked_assignments
    where tgt_apl_asg_id = p_apl_asg_id
      and sysdate between nvl(start_date,sysdate) and
                          nvl(end_date,sysdate) ;
Line: 332

          select function_id from fnd_form_functions
                  where function_name = p_function_name;
Line: 337

    select src_apl_asg_id from per_vac_linked_assignments
    where tgt_apl_asg_id = p_apl_asg_id
      and sysdate between nvl(start_date,sysdate) and
                          nvl(end_date,sysdate) ;
Line: 451

  select note.note_text
    from irc_notes note
   where note.offer_status_history_id = p_offer_status_history_id
   order by creation_date desc;
Line: 1395

l_last_updated_by number;
Line: 1411

  select note.note_text
    from irc_notes note
   where note.offer_status_history_id = p_offer_status_history_id
   order by creation_date desc;
Line: 1417

  select meaning
    from hr_lookups
   where lookup_type = 'IRC_OFFER_DECLINE_REASON' and
         lookup_code = p_decline_reason;
Line: 1423

  select iri.source_person_id
    from irc_referral_info iri,
         irc_offers iof
   where iri.object_id = iof.APPLICANT_ASSIGNMENT_ID
     and iri.object_type = 'APPLICATION'
     and iof.offer_id = p_offer_id;
Line: 1476

      fetch csr_send_apl_resp into l_vacancy_name,l_manager_id,l_recruiter_id,l_creator_id,l_job_title,l_applicant_id,l_applicant_name,l_job_posting_title,l_ipc_job_title,l_last_updated_by;
Line: 1942

l_last_updated_by number;
Line: 1943

l_last_updated_emp_id number;
Line: 1974

  select note.note_text
    from irc_notes note
   where note.offer_status_history_id = p_offer_status_history_id
   order by creation_date desc;
Line: 1980

  select meaning
    from hr_lookups
   where lookup_type = 'IRC_OFFER_WITHDRAWAL_REASON' and
         lookup_code = p_withdrawal_reason;
Line: 1986

  select offer_status,change_reason
    from irc_offer_status_history
   where offer_id = p_offer_id
     and status_change_date = (select max(status_change_date)
                                 from irc_offer_status_history
				where offer_id = p_offer_id
				  and offer_status_history_id <> p_offer_status_history_id);
Line: 1997

  select ppf.full_name
  from  per_all_people_f ppf
  where ppf.person_id = p_person_id
    and sysdate between effective_start_date and effective_end_date;
Line: 2047

      fetch csr_send_apl_resp into l_vacancy_name,l_manager_id,l_recruiter_id,l_creator_id,l_job_title,l_applicant_id,l_applicant_name,l_job_posting_title,l_ipc_job_title,l_last_updated_by;
Line: 2163

        hr_utility.set_location('l_last_updated_by' || l_last_updated_by, 20);
Line: 2165

        open csr_get_user_employee_id(l_last_updated_by);
Line: 2166

        fetch csr_get_user_employee_id into l_last_updated_emp_id;
Line: 2169

        hr_utility.set_location('l_last_updated_emp_id' || l_last_updated_emp_id, 20);
Line: 2171

        open csr_get_name(l_last_updated_emp_id);
Line: 2321

l_last_updated_by number;
Line: 2349

  select note.note_text
    from irc_notes note
   where note.offer_status_history_id = p_offer_status_history_id
   order by creation_date desc;
Line: 2355

  select meaning
    from hr_lookups
   where lookup_type = 'IRC_OFFER_DECLINE_REASON' and
         lookup_code = p_decline_reason;
Line: 2361

  select offer_status,change_reason
    from irc_offer_status_history
   where offer_id = p_offer_id
     and status_change_date = (select max(status_change_date)
                                 from irc_offer_status_history
				where offer_id = p_offer_id
				  and offer_status_history_id <> p_offer_status_history_id);
Line: 2372

  select ppf.full_name
  from  per_all_people_f ppf
  where ppf.person_id = p_person_id
    and sysdate between effective_start_date and effective_end_date;
Line: 2420

      fetch csr_send_apl_resp into l_vacancy_name,l_manager_id,l_recruiter_id,l_creator_id,l_job_title,l_applicant_id,l_applicant_name,l_job_posting_title,l_ipc_job_title,l_last_updated_by;