DBA Data[Home] [Help]

APPS.OTA_LST_SHD SQL Statements

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

Line: 47

    select
       learning_path_section_id
      ,language
      ,name
      ,description
      ,source_lang
    from  ota_lp_sections_tl
    where learning_path_section_id = p_learning_path_section_id
    and   language = p_language;
Line: 114

    select
       learning_path_section_id
      ,language
      ,name
      ,description
      ,source_lang
    from        ota_lp_sections_tl
    where       learning_path_section_id = p_learning_path_section_id
    and   language = p_language
    for update nowait;
Line: 177

  delete from OTA_LP_SECTIONS_TL T
  where not exists
    (select NULL
    from OTA_LP_SECTIONS B
    where B.LEARNING_PATH_SECTION_ID = T.LEARNING_PATH_SECTION_ID
    );
Line: 184

  update OTA_LP_SECTIONS_TL T set (
      NAME,
      DESCRIPTION
    ) = (select
      B.NAME,
      B.DESCRIPTION
    from OTA_LP_SECTIONS_TL B
    where B.LEARNING_PATH_SECTION_ID = T.LEARNING_PATH_SECTION_ID
    and B.LANGUAGE = T.SOURCE_LANG)
  where (
      T.LEARNING_PATH_SECTION_ID,
      T.LANGUAGE
  ) in (select
      SUBT.LEARNING_PATH_SECTION_ID,
      SUBT.LANGUAGE
    from OTA_LP_SECTIONS_TL SUBB, OTA_LP_SECTIONS_TL SUBT
    where SUBB.LEARNING_PATH_SECTION_ID = SUBT.LEARNING_PATH_SECTION_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)
  ));
Line: 208

  insert into OTA_LP_SECTIONS_TL (
    CREATION_DATE,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    LAST_UPDATE_LOGIN,
    NAME,
    DESCRIPTION,
    CREATED_BY,
    LEARNING_PATH_SECTION_ID,
    LANGUAGE,
    SOURCE_LANG
  ) select /*+ ORDERED */
    B.CREATION_DATE,
    B.LAST_UPDATE_DATE,
    B.LAST_UPDATED_BY,
    B.LAST_UPDATE_LOGIN,
    B.NAME,
    B.DESCRIPTION,
    B.CREATED_BY,
    B.LEARNING_PATH_SECTION_ID,
    L.LANGUAGE_CODE,
    B.SOURCE_LANG
  from OTA_LP_SECTIONS_TL B, FND_LANGUAGES L
  where L.INSTALLED_FLAG in ('I', 'B')
  and B.LANGUAGE = userenv('LANG')
  and not exists
    (select NULL
    from OTA_LP_SECTIONS_TL T
    where T.LEARNING_PATH_SECTION_ID = B.LEARNING_PATH_SECTION_ID
    and T.LANGUAGE = L.LANGUAGE_CODE);