DBA Data[Home] [Help]

APPS.PAY_URT_SHD SQL Statements

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

Line: 47

    select
       user_row_id
      ,language
      ,source_lang
      ,row_low_range_or_name
    from  pay_user_rows_f_tl
    where user_row_id = p_user_row_id
    and   language = p_language;
Line: 113

    select
       user_row_id
      ,language
      ,source_lang
      ,row_low_range_or_name
    from        pay_user_rows_f_tl
    where       user_row_id = p_user_row_id
    and   language = p_language
    for update nowait;
Line: 170

  delete from PAY_USER_ROWS_F_TL T
  where not exists
    (select NULL
    from PAY_USER_ROWS_F B
    where B.USER_ROW_ID = T.USER_ROW_ID
    );
Line: 177

  update PAY_USER_ROWS_F_TL T set (
      ROW_LOW_RANGE_OR_NAME
    ) = (select
      B.ROW_LOW_RANGE_OR_NAME
    from PAY_USER_ROWS_F_TL B
    where B.USER_ROW_ID = T.USER_ROW_ID
    and B.LANGUAGE = T.SOURCE_LANG)
  where (
      T.USER_ROW_ID,
      T.LANGUAGE
  ) in (select
      SUBT.USER_ROW_ID,
      SUBT.LANGUAGE
    from PAY_USER_ROWS_F_TL SUBB, PAY_USER_ROWS_F_TL SUBT
    where SUBB.USER_ROW_ID = SUBT.USER_ROW_ID
    and SUBB.LANGUAGE = SUBT.SOURCE_LANG
    and (SUBB.ROW_LOW_RANGE_OR_NAME <> SUBT.ROW_LOW_RANGE_OR_NAME));
Line: 195

  insert into PAY_USER_ROWS_F_TL (
    USER_ROW_ID,
    ROW_LOW_RANGE_OR_NAME,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    LAST_UPDATE_LOGIN,
    CREATED_BY,
    CREATION_DATE,
    LANGUAGE,
    SOURCE_LANG
  ) select
    B.USER_ROW_ID,
    B.ROW_LOW_RANGE_OR_NAME,
    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_ROWS_F_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_ROWS_F_TL T
    where T.USER_ROW_ID = B.USER_ROW_ID
    and T.LANGUAGE = L.LANGUAGE_CODE);