DBA Data[Home] [Help]

APPS.OTA_UGT_SHD SQL Statements

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

Line: 47

    select
       user_group_id
      ,language
      ,user_group_name
      ,description
      ,source_lang
    from  ota_user_groups_tl
    where user_group_id = p_user_group_id
    and   language = p_language;
Line: 111

    select
       user_group_id
      ,language
      ,user_group_name
      ,description
      ,source_lang
    from        ota_user_groups_tl
    where       user_group_id = p_user_group_id
    and   language = p_language
    for update nowait;
Line: 178

  delete from ota_user_groups_tl T
  where not exists
    (select NULL
    from OTA_USER_GROUPS_B B
    where B.user_group_id = T.user_group_id
    );
Line: 185

  update ota_user_groups_tl T set (
      USER_GROUP_NAME,
      DESCRIPTION
    ) = (select
      B.USER_GROUP_NAME,
      B.DESCRIPTION
    from ota_user_groups_tl B
    where B.user_group_id = T.user_group_id
    and B.LANGUAGE = T.SOURCE_LANG)
  where (
      T.user_group_id,
      T.LANGUAGE
  ) in (select
      SUBT.user_group_id,
      SUBT.LANGUAGE
    from ota_user_groups_tl SUBB, ota_user_groups_tl SUBT
    where SUBB.user_group_id = SUBT.user_group_id
    and SUBB.LANGUAGE = SUBT.SOURCE_LANG
    and (SUBB.USER_GROUP_NAME <> SUBT.USER_GROUP_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: 209

  insert into ota_user_groups_tl (
    user_group_id,
    USER_GROUP_NAME,
    DESCRIPTION,
    CREATED_BY,
    CREATION_DATE,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    LAST_UPDATE_LOGIN,
    LANGUAGE,
    SOURCE_LANG
  ) select
    B.user_group_id,
    B.USER_GROUP_NAME,
    B.DESCRIPTION,
    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_user_groups_tl B, FND_LANGUAGES L
  where L.INSTALLED_FLAG in ('I', 'B')
  and B.LANGUAGE = userenv('LANG')
  and not exists
    (select NULL
    from ota_user_groups_tl T
    where T.user_group_id = B.user_group_id
    and T.LANGUAGE = L.LANGUAGE_CODE);