DBA Data[Home] [Help]

APPS.AME_RTL_SHD SQL Statements

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

Line: 47

    select
       rule_id
      ,language
      ,source_lang
      ,description
    from  ame_rules_tl
    where rule_id = p_rule_id
    and   language = p_language;
Line: 113

    select
       rule_id
      ,language
      ,source_lang
      ,description
    from        ame_rules_tl
    where       rule_id = p_rule_id
    and   language = p_language
    for update nowait;
Line: 181

  delete from AME_RULES_TL T
  where not exists
    (select NULL
    from AME_RULES B
    where B.RULE_ID = T.RULE_ID
    );
Line: 188

  update AME_RULES_TL T set (
      DESCRIPTION
    ) = (select
      B.DESCRIPTION
    from AME_RULES_TL B
    where B.RULE_ID = T.RULE_ID
    and B.LANGUAGE = T.SOURCE_LANG)
  where (
      T.RULE_ID,
      T.LANGUAGE
  ) in (select
      SUBT.RULE_ID,
      SUBT.LANGUAGE
    from AME_RULES_TL SUBB, AME_RULES_TL SUBT
    where SUBB.RULE_ID = SUBT.RULE_ID
    and SUBB.LANGUAGE = SUBT.SOURCE_LANG
    and (SUBB.DESCRIPTION <> SUBT.DESCRIPTION
  ));
Line: 207

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