DBA Data[Home] [Help]

APPS.OTA_CTL_SHD SQL Statements

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

Line: 47

    select
       certification_id
      ,language
      ,name
      ,description
      ,objectives
      ,purpose
      ,keywords
      ,end_date_comments
      ,initial_period_comments
      ,renewal_period_comments
      ,source_lang
    from  ota_certifications_tl
    where certification_id = p_certification_id
    and   language = p_language;
Line: 120

    select
       certification_id
      ,language
      ,name
      ,description
      ,objectives
      ,purpose
      ,keywords
      ,end_date_comments
      ,initial_period_comments
      ,renewal_period_comments
      ,source_lang
    from        ota_certifications_tl
    where       certification_id = p_certification_id
    and   language = p_language
    for update nowait;
Line: 191

  delete from OTA_CERTIFICATIONS_TL T
  where not exists
    (select NULL
    from OTA_CERTIFICATIONS_B B
    where B.CERTIFICATION_ID = T.CERTIFICATION_ID
    );
Line: 198

  update OTA_CERTIFICATIONS_TL T set (
      NAME,
      DESCRIPTION,
      OBJECTIVES,
      PURPOSE,
      KEYWORDS,
      END_DATE_COMMENTS,
      INITIAL_PERIOD_COMMENTS,
      RENEWAL_PERIOD_COMMENTS
    ) = (select
      B.NAME,
      B.DESCRIPTION,
      B.OBJECTIVES,
      B.PURPOSE,
      B.KEYWORDS,
      B.END_DATE_COMMENTS,
      B.INITIAL_PERIOD_COMMENTS,
      B.RENEWAL_PERIOD_COMMENTS
    from OTA_CERTIFICATIONS_TL B
    where B.CERTIFICATION_ID = T.CERTIFICATION_ID
    and B.LANGUAGE = T.SOURCE_LANG)
  where (
      T.CERTIFICATION_ID,
      T.LANGUAGE
  ) in (select
      SUBT.CERTIFICATION_ID,
      SUBT.LANGUAGE
    from OTA_CERTIFICATIONS_TL SUBB, OTA_CERTIFICATIONS_TL SUBT
    where SUBB.CERTIFICATION_ID = SUBT.CERTIFICATION_ID
    and SUBB.LANGUAGE = SUBT.SOURCE_LANG
    and (SUBB.NAME <> SUBT.NAME
      or SUBB.DESCRIPTION <> SUBT.DESCRIPTION
      or (SUBB.DESCRIPTION is null and SUBT.DESCRIPTION is not null)
      or (SUBB.DESCRIPTION is not null and SUBT.DESCRIPTION is null)
      or SUBB.OBJECTIVES <> SUBT.OBJECTIVES
      or (SUBB.OBJECTIVES is null and SUBT.OBJECTIVES is not null)
      or (SUBB.OBJECTIVES is not null and SUBT.OBJECTIVES is null)
      or SUBB.PURPOSE <> SUBT.PURPOSE
      or (SUBB.PURPOSE is null and SUBT.PURPOSE is not null)
      or (SUBB.PURPOSE is not null and SUBT.PURPOSE is null)
      or SUBB.KEYWORDS <> SUBT.KEYWORDS
      or (SUBB.KEYWORDS is null and SUBT.KEYWORDS is not null)
      or (SUBB.KEYWORDS is not null and SUBT.KEYWORDS is null)
      or SUBB.END_DATE_COMMENTS <> SUBT.END_DATE_COMMENTS
      or (SUBB.END_DATE_COMMENTS is null and SUBT.END_DATE_COMMENTS is not null)
      or (SUBB.END_DATE_COMMENTS is not null and SUBT.END_DATE_COMMENTS is null)
      or SUBB.INITIAL_PERIOD_COMMENTS <> SUBT.INITIAL_PERIOD_COMMENTS
      or (SUBB.INITIAL_PERIOD_COMMENTS is null and SUBT.INITIAL_PERIOD_COMMENTS is not null)
      or (SUBB.INITIAL_PERIOD_COMMENTS is not null and SUBT.INITIAL_PERIOD_COMMENTS is null)
      or SUBB.RENEWAL_PERIOD_COMMENTS <> SUBT.RENEWAL_PERIOD_COMMENTS
      or (SUBB.RENEWAL_PERIOD_COMMENTS is null and SUBT.RENEWAL_PERIOD_COMMENTS is not null)
      or (SUBB.RENEWAL_PERIOD_COMMENTS is not null and SUBT.RENEWAL_PERIOD_COMMENTS is null)
  ));
Line: 252

  insert into OTA_CERTIFICATIONS_TL (
    LAST_UPDATE_DATE,
    OBJECTIVES,
    PURPOSE,
    KEYWORDS,
    END_DATE_COMMENTS,
    INITIAL_PERIOD_COMMENTS,
    RENEWAL_PERIOD_COMMENTS,
    CREATED_BY,
    CREATION_DATE,
    NAME,
    DESCRIPTION,
    LAST_UPDATE_LOGIN,
    CERTIFICATION_ID,
    LAST_UPDATED_BY,
    LANGUAGE,
    SOURCE_LANG
  ) select /*+ ORDERED */
    B.LAST_UPDATE_DATE,
    B.OBJECTIVES,
    B.PURPOSE,
    B.KEYWORDS,
    B.END_DATE_COMMENTS,
    B.INITIAL_PERIOD_COMMENTS,
    B.RENEWAL_PERIOD_COMMENTS,
    B.CREATED_BY,
    B.CREATION_DATE,
    B.NAME,
    B.DESCRIPTION,
    B.LAST_UPDATE_LOGIN,
    B.CERTIFICATION_ID,
    B.LAST_UPDATED_BY,
    L.LANGUAGE_CODE,
    B.SOURCE_LANG
  from OTA_CERTIFICATIONS_TL B, FND_LANGUAGES L
  where L.INSTALLED_FLAG in ('I', 'B')
  and B.LANGUAGE = userenv('LANG')
  and not exists
    (select NULL
    from OTA_CERTIFICATIONS_TL T
    where T.CERTIFICATION_ID = B.CERTIFICATION_ID
    and T.LANGUAGE = L.LANGUAGE_CODE);