DBA Data[Home] [Help]

APPS.OTA_ENT_SHD SQL Statements

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

Line: 47

    select
       event_id
      ,language
      ,title
      ,source_lang
    from  ota_events_tl
    where event_id = p_event_id
    and   language = p_language;
Line: 113

    select
       event_id
      ,language
      ,title
      ,source_lang
    from        ota_events_tl
    where       event_id = p_event_id
    and   language = p_language
    for update nowait;
Line: 179

  delete from OTA_EVENTS_TL T
  where not exists
    (select NULL
    from OTA_EVENTS B
    where B.EVENT_ID = T.EVENT_ID
    );
Line: 186

  update OTA_EVENTS_TL T set (
      TITLE
    ) = (select
      B.TITLE
    from OTA_EVENTS_TL B
    where B.EVENT_ID = T.EVENT_ID
    and B.LANGUAGE = T.SOURCE_LANG)
  where (
      T.EVENT_ID,
      T.LANGUAGE
  ) in (select
      SUBT.EVENT_ID,
      SUBT.LANGUAGE
    from OTA_EVENTS_TL SUBB, OTA_EVENTS_TL SUBT
    where SUBB.EVENT_ID = SUBT.EVENT_ID
    and SUBB.LANGUAGE = SUBT.SOURCE_LANG
    and (SUBB.TITLE <> SUBT.TITLE
  ));
Line: 205

  insert into OTA_EVENTS_TL (
    EVENT_ID,
    TITLE,
    CREATED_BY,
    CREATION_DATE,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    LAST_UPDATE_LOGIN,
    LANGUAGE,
    SOURCE_LANG
  ) select
    B.EVENT_ID,
    B.TITLE,
    B.CREATED_BY,
    B.CREATION_DATE,
    B.LAST_UPDATE_DATE,
    B.LAST_UPDATED_BY,
    B.LAST_UPDATE_LOGIN,
    L.LANGUAGE_CODE,
    B.SOURCE_LANG
  from OTA_EVENTS_TL B, FND_LANGUAGES L
  where L.INSTALLED_FLAG in ('I', 'B')
  and B.LANGUAGE = userenv('LANG')
  and not exists
    (select NULL
    from OTA_EVENTS_TL T
    where T.EVENT_ID = B.EVENT_ID
    and T.LANGUAGE = L.LANGUAGE_CODE);