DBA Data[Home] [Help]

APPS.IRC_IPT_SHD SQL Statements

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

Line: 47

    select
       posting_content_id
      ,language
      ,source_language
      ,name
      ,org_name
      ,org_description
      ,job_title
      ,brief_description
      ,detailed_description
      ,job_requirements
      ,additional_details
      ,how_to_apply
      ,benefit_info
      ,image_url
      ,image_url_alt
    from  irc_posting_contents_tl
    where posting_content_id = p_posting_content_id
    and   language = p_language;
Line: 150

    select
       posting_content_id
      ,language
      ,source_language
      ,name
      ,org_name
      ,org_description
      ,job_title
      ,brief_description
      ,detailed_description
      ,job_requirements
      ,additional_details
      ,how_to_apply
      ,benefit_info
      ,image_url
      ,image_url_alt
    from        irc_posting_contents_tl
    where       posting_content_id = p_posting_content_id
    and   language = p_language
    for update nowait;
Line: 249

  delete from IRC_POSTING_CONTENTS_TL T
  where not exists
    (select NULL
    from IRC_POSTING_CONTENTS B
    where B.POSTING_CONTENT_ID = T.POSTING_CONTENT_ID
    );
Line: 255

  update IRC_POSTING_CONTENTS_TL T set (
      NAME,
      ORG_NAME,
      ORG_DESCRIPTION,
      JOB_TITLE,
      BRIEF_DESCRIPTION,
      DETAILED_DESCRIPTION,
      JOB_REQUIREMENTS,
      ADDITIONAL_DETAILS,
      HOW_TO_APPLY,
      BENEFIT_INFO,
      IMAGE_URL,
      IMAGE_URL_ALT
    ) = (select
      B.NAME,
      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,
      B.BENEFIT_INFO,
      B.IMAGE_URL,
      B.IMAGE_URL_ALT
    from IRC_POSTING_CONTENTS_TL B
    where B.POSTING_CONTENT_ID = T.POSTING_CONTENT_ID
    and B.LANGUAGE = T.SOURCE_LANGUAGE)
  where (
      T.POSTING_CONTENT_ID,
      T.LANGUAGE
  ) in (select
      SUBT.POSTING_CONTENT_ID,
      SUBT.LANGUAGE
    from IRC_POSTING_CONTENTS_TL SUBB, IRC_POSTING_CONTENTS_TL SUBT
    where SUBB.POSTING_CONTENT_ID = SUBT.POSTING_CONTENT_ID
    and SUBB.LANGUAGE = SUBT.SOURCE_LANGUAGE
    and (SUBB.NAME <> SUBT.NAME
      or 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)
      or dbms_lob.compare(SUBB.BENEFIT_INFO,SUBT.BENEFIT_INFO) = 0
      or (SUBB.BENEFIT_INFO is null and SUBT.BENEFIT_INFO is not null)
      or (SUBB.BENEFIT_INFO is not null and SUBT.BENEFIT_INFO is null)
      or dbms_lob.compare(SUBB.IMAGE_URL,SUBT.IMAGE_URL) = 0
      or (SUBB.IMAGE_URL is null and SUBT.IMAGE_URL is not null)
      or (SUBB.IMAGE_URL is not null and SUBT.IMAGE_URL is null)
      or dbms_lob.compare(SUBB.IMAGE_URL_ALT , SUBT.IMAGE_URL_ALT) = 0
      or (SUBB.IMAGE_URL_ALT is null and SUBT.IMAGE_URL_ALT is not null)
      or (SUBB.IMAGE_URL_ALT is not null and SUBT.IMAGE_URL_ALT is null)
  ));
Line: 338

  insert into IRC_POSTING_CONTENTS_TL (
    POSTING_CONTENT_ID,
    SOURCE_LANGUAGE,
    NAME,
    ORG_NAME,
    ORG_DESCRIPTION,
    JOB_TITLE,
    BRIEF_DESCRIPTION,
    DETAILED_DESCRIPTION,
    JOB_REQUIREMENTS,
    ADDITIONAL_DETAILS,
    HOW_TO_APPLY,
    BENEFIT_INFO,
    IMAGE_URL,
    IMAGE_URL_ALT,
    LANGUAGE
  ) select
    B.POSTING_CONTENT_ID,
    B.SOURCE_LANGUAGE,
    B.NAME,
    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,
    B.BENEFIT_INFO,
    B.IMAGE_URL,
    B.IMAGE_URL_ALT,
    L.LANGUAGE_CODE
  from IRC_POSTING_CONTENTS_TL B, FND_LANGUAGES L
  where L.INSTALLED_FLAG in ('I', 'B')
  and B.LANGUAGE = userenv('LANG')
  and not exists
    (select NULL
    from IRC_POSTING_CONTENTS_TL T
    where T.POSTING_CONTENT_ID = B.POSTING_CONTENT_ID
    and T.LANGUAGE = L.LANGUAGE_CODE);
Line: 439

select
 org_description
,brief_description
,detailed_description
,job_requirements
,additional_details
,how_to_apply
,benefit_info
,image_url
,image_url_alt
 from irc_posting_contents_tl
where posting_content_id = p_rec.posting_content_id
and language = p_rec.language;