DBA Data[Home] [Help]

APPS.FF_FGT_SHD SQL Statements

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

Line: 47

    select
       global_id
      ,language
      ,source_lang
      ,global_name
      ,global_description
    from  ff_globals_f_tl
    where global_id = p_global_id
    and   language = p_language;
Line: 114

    select
       global_id
      ,language
      ,source_lang
      ,global_name
      ,global_description
    from        ff_globals_f_tl
    where       global_id = p_global_id
    and   language = p_language
    for update nowait;
Line: 177

  delete from FF_GLOBALS_F_TL T
  where not exists
    (select NULL
    from FF_GLOBALS_F B
    where B.GLOBAL_ID = T.GLOBAL_ID
    );
Line: 183

  update FF_GLOBALS_F_TL T set (
      GLOBAL_NAME,
      GLOBAL_DESCRIPTION
    ) = (select
      B.GLOBAL_NAME,
      B.GLOBAL_DESCRIPTION
    from FF_GLOBALS_F_TL B
    where B.GLOBAL_ID = T.GLOBAL_ID
    and B.LANGUAGE = T.SOURCE_LANG)
  where (
      T.GLOBAL_ID,
      T.LANGUAGE
  ) in (select
      SUBT.GLOBAL_ID,
      SUBT.LANGUAGE
    from FF_GLOBALS_F_TL SUBB, FF_GLOBALS_F_TL SUBT
    where SUBB.GLOBAL_ID = SUBT.GLOBAL_ID
    and SUBB.LANGUAGE = SUBT.SOURCE_LANG
    and (SUBB.GLOBAL_NAME <> SUBT.GLOBAL_NAME
      or SUBB.GLOBAL_DESCRIPTION <> SUBT.GLOBAL_DESCRIPTION
      or (SUBB.GLOBAL_DESCRIPTION is null and SUBT.GLOBAL_DESCRIPTION is not null)
      or (SUBB.GLOBAL_DESCRIPTION is not null and SUBT.GLOBAL_DESCRIPTION is null)
  ));
Line: 207

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