DBA Data[Home] [Help]

APPS.HR_TTL_SHD SQL Statements

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

Line: 52

    select
       topic_id
      ,name
      ,language
      ,source_lang
    from  hr_ki_topics_tl
    where
     topic_id = p_topic_id and language = p_language;
Line: 118

    select
       topic_id
      ,name
      ,language
      ,source_lang
    from        hr_ki_topics_tl
    where
    topic_id = p_topic_id and language = p_language
    for update nowait;
Line: 186

  delete from HR_KI_TOPICS_TL T
  where not exists
    (select NULL
    from HR_KI_TOPICS B
    where B.TOPIC_ID = T.TOPIC_ID
    );
Line: 193

  update HR_KI_TOPICS_TL T set (
      NAME
    ) = (select
      B.NAME
    from HR_KI_TOPICS_TL B
    where B.TOPIC_ID = T.TOPIC_ID
    and B.LANGUAGE = T.SOURCE_LANG)
  where (
      T.TOPIC_ID,
      T.LANGUAGE
  ) in (select
      SUBT.TOPIC_ID,
      SUBT.LANGUAGE
    from HR_KI_TOPICS_TL SUBB, HR_KI_TOPICS_TL SUBT
    where SUBB.TOPIC_ID = SUBT.TOPIC_ID
    and SUBB.LANGUAGE = SUBT.SOURCE_LANG
    and (SUBB.NAME <> SUBT.NAME
  ));
Line: 212

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