DBA Data[Home] [Help]

APPS.PAY_PTT_SHD SQL Statements

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

Line: 47

    select
       user_table_id
      ,language
      ,source_lang
      ,user_table_name
      ,user_row_title
    from  pay_user_tables_tl
    where user_table_id = p_user_table_id
    and   language = p_language;
Line: 114

    select
       user_table_id
      ,language
      ,source_lang
      ,user_table_name
      ,user_row_title
    from        pay_user_tables_tl
    where       user_table_id = p_user_table_id
    and   language = p_language
    for update nowait;
Line: 175

  delete from PAY_USER_TABLES_TL T
  where not exists
    (select NULL
    from PAY_USER_TABLES B
    where B.USER_TABLE_ID = T.USER_TABLE_ID
    );
Line: 182

  update PAY_USER_TABLES_TL T set (
      USER_TABLE_NAME,
      USER_ROW_TITLE
    ) = (select
      B.USER_TABLE_NAME,
      B.USER_ROW_TITLE
    from PAY_USER_TABLES_TL B
    where B.USER_TABLE_ID = T.USER_TABLE_ID
    and B.LANGUAGE = T.SOURCE_LANG)
  where (
      T.USER_TABLE_ID,
      T.LANGUAGE
  ) in (select
      SUBT.USER_TABLE_ID,
      SUBT.LANGUAGE
    from PAY_USER_TABLES_TL SUBB, PAY_USER_TABLES_TL SUBT
    where SUBB.USER_TABLE_ID = SUBT.USER_TABLE_ID
    and SUBB.LANGUAGE = SUBT.SOURCE_LANG
    and (SUBB.USER_TABLE_NAME <> SUBT.USER_TABLE_NAME
      or SUBB.USER_ROW_TITLE <> SUBT.USER_ROW_TITLE
      or (SUBB.USER_ROW_TITLE is null and SUBT.USER_ROW_TITLE is not null)
      or (SUBB.USER_ROW_TITLE is not null and SUBT.USER_ROW_TITLE is null)
  ));
Line: 206

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