DBA Data[Home] [Help]

APPS.IRC_IDT_SHD SQL Statements

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

Line: 47

    select
       default_posting_id
      ,language
      ,source_language
      ,org_name
      ,org_description
      ,''
      ,job_title
      ,brief_description
      ,''
      ,detailed_description
      ,''
      ,job_requirements
      ,''
      ,additional_details
      ,''
      ,how_to_apply
      ,''
      ,image_url
      ,''
      ,image_url_alt
      ,''
    from  irc_default_postings_tl
    where default_posting_id = p_default_posting_id
    and   language = p_language;
Line: 146

    select
       default_posting_id
      ,language
      ,source_language
      ,org_name
      ,org_description
      ,''
      ,job_title
      ,brief_description
      ,''
      ,detailed_description
      ,''
      ,job_requirements
      ,''
      ,additional_details
      ,''
      ,how_to_apply
      ,''
      ,image_url
      ,''
      ,image_url_alt
      ,''
    from        irc_default_postings_tl
    where       default_posting_id = p_default_posting_id
    and   language = p_language
    for update nowait;
Line: 240

  delete from IRC_DEFAULT_POSTINGS_TL T
  where not exists
    (select NULL
    from IRC_DEFAULT_POSTINGS B
    where B.DEFAULT_POSTING_ID = T.DEFAULT_POSTING_ID
    );
Line: 247

  update IRC_DEFAULT_POSTINGS_TL T set (
      ORG_NAME,
      ORG_DESCRIPTION,
      JOB_TITLE,
      BRIEF_DESCRIPTION,
      DETAILED_DESCRIPTION,
      JOB_REQUIREMENTS,
      ADDITIONAL_DETAILS,
      HOW_TO_APPLY
    ) = (select
      B.ORG_NAME,
      B.ORG_DESCRIPTION,
      B.JOB_TITLE,
      B.BRIEF_DESCRIPTION,
      B.DETAILED_DESCRIPTION,
      B.JOB_REQUIREMENTS,
      B.ADDITIONAL_DETAILS,
      B.HOW_TO_APPLY
    from IRC_DEFAULT_POSTINGS_TL B
    where B.DEFAULT_POSTING_ID = T.DEFAULT_POSTING_ID
    and B.LANGUAGE = T.SOURCE_LANGUAGE)
  where (
      T.DEFAULT_POSTING_ID,
      T.LANGUAGE
  ) in (select
      SUBT.DEFAULT_POSTING_ID,
      SUBT.LANGUAGE
    from IRC_DEFAULT_POSTINGS_TL SUBB, IRC_DEFAULT_POSTINGS_TL SUBT
    where SUBB.DEFAULT_POSTING_ID = SUBT.DEFAULT_POSTING_ID
    and SUBB.LANGUAGE = SUBT.SOURCE_LANGUAGE
    and (SUBB.ORG_NAME <> SUBT.ORG_NAME
      or (SUBB.ORG_NAME is null and SUBT.ORG_NAME is not null)
      or (SUBB.ORG_NAME is not null and SUBT.ORG_NAME is null)
      or dbms_lob.compare(SUBB.ORG_DESCRIPTION, SUBT.ORG_DESCRIPTION) = 0
      or (SUBB.ORG_DESCRIPTION is null and SUBT.ORG_DESCRIPTION is not null)
      or (SUBB.ORG_DESCRIPTION is not null and SUBT.ORG_DESCRIPTION is null)
      or SUBB.JOB_TITLE <> SUBT.JOB_TITLE
      or (SUBB.JOB_TITLE is null and SUBT.JOB_TITLE is not null)
      or (SUBB.JOB_TITLE is not null and SUBT.JOB_TITLE is null)
      or dbms_lob.compare(SUBB.BRIEF_DESCRIPTION, SUBT.BRIEF_DESCRIPTION) = 0
      or (SUBB.BRIEF_DESCRIPTION is null and SUBT.BRIEF_DESCRIPTION is not null)
      or (SUBB.BRIEF_DESCRIPTION is not null and SUBT.BRIEF_DESCRIPTION is null)
      or dbms_lob.compare(SUBB.DETAILED_DESCRIPTION, SUBT.DETAILED_DESCRIPTION) = 0
      or (SUBB.DETAILED_DESCRIPTION is null and SUBT.DETAILED_DESCRIPTION is not null)
      or (SUBB.DETAILED_DESCRIPTION is not null and SUBT.DETAILED_DESCRIPTION is null)
      or dbms_lob.compare(SUBB.JOB_REQUIREMENTS, SUBT.JOB_REQUIREMENTS) = 0
      or (SUBB.JOB_REQUIREMENTS is null and SUBT.JOB_REQUIREMENTS is not null)
      or (SUBB.JOB_REQUIREMENTS is not null and SUBT.JOB_REQUIREMENTS is null)
      or dbms_lob.compare(SUBB.ADDITIONAL_DETAILS, SUBT.ADDITIONAL_DETAILS) = 0
      or (SUBB.ADDITIONAL_DETAILS is null and SUBT.ADDITIONAL_DETAILS is not null)
      or (SUBB.ADDITIONAL_DETAILS is not null and SUBT.ADDITIONAL_DETAILS is null)
      or dbms_lob.compare(SUBB.HOW_TO_APPLY, SUBT.HOW_TO_APPLY) = 0
      or (SUBB.HOW_TO_APPLY is null and SUBT.HOW_TO_APPLY is not null)
      or (SUBB.HOW_TO_APPLY is not null and SUBT.HOW_TO_APPLY is null)
  ));
Line: 303

  insert into IRC_DEFAULT_POSTINGS_TL (
    HOW_TO_APPLY,
    IMAGE_URL,
    IMAGE_URL_ALT,
    SOURCE_LANGUAGE,
    DEFAULT_POSTING_ID,
    JOB_REQUIREMENTS,
    ADDITIONAL_DETAILS,
    DETAILED_DESCRIPTION,
    ORG_NAME,
    ORG_DESCRIPTION,
    JOB_TITLE,
    BRIEF_DESCRIPTION,
    LANGUAGE
  ) select
    B.HOW_TO_APPLY,
    B.IMAGE_URL,
    B.IMAGE_URL_ALT,
    B.SOURCE_LANGUAGE,
    B.DEFAULT_POSTING_ID,
    B.JOB_REQUIREMENTS,
    B.ADDITIONAL_DETAILS,
    B.DETAILED_DESCRIPTION,
    B.ORG_NAME,
    B.ORG_DESCRIPTION,
    B.JOB_TITLE,
    B.BRIEF_DESCRIPTION,
    L.LANGUAGE_CODE
  from IRC_DEFAULT_POSTINGS_TL B, FND_LANGUAGES L
  where L.INSTALLED_FLAG in ('I', 'B')
  and B.LANGUAGE = userenv('LANG')
  and not exists
    (select NULL
    from IRC_DEFAULT_POSTINGS_TL T
    where T.DEFAULT_POSTING_ID = B.DEFAULT_POSTING_ID
    and T.LANGUAGE = L.LANGUAGE_CODE);
Line: 399

select
 org_description
,brief_description
,detailed_description
,job_requirements
,additional_details
,how_to_apply
,image_url
,image_url_alt
 from irc_default_postings_tl
where default_posting_id = p_rec.default_posting_id
and language = p_rec.language;