DBA Data[Home] [Help]

APPS.PAY_RTT_SHD SQL Statements

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

Line: 47

    select
       run_type_id
      ,language
      ,source_lang
      ,run_type_name
      ,shortname
    from  pay_run_types_f_tl
    where run_type_id = p_run_type_id
    and   language = p_language;
Line: 114

    select
       run_type_id
      ,language
      ,source_lang
      ,run_type_name
      ,shortname
    from	pay_run_types_f_tl
    where	run_type_id = p_run_type_id
    and   language = p_language
    for	update nowait;
Line: 180

  delete from PAY_RUN_TYPES_F_TL T
  where not exists
    (select NULL
    from PAY_RUN_TYPES_F B
    where B.RUN_TYPE_ID = T.RUN_TYPE_ID
    );
Line: 187

  update PAY_RUN_TYPES_F_TL T set (
      RUN_TYPE_NAME,
      SHORTNAME
    ) = (select
      B.RUN_TYPE_NAME,
      B.SHORTNAME
    from PAY_RUN_TYPES_F_TL B
    where B.RUN_TYPE_ID = T.RUN_TYPE_ID
    and B.LANGUAGE = T.SOURCE_LANG)
  where (
      T.RUN_TYPE_ID,
      T.LANGUAGE
  ) in (select
      SUBT.RUN_TYPE_ID,
      SUBT.LANGUAGE
    from PAY_RUN_TYPES_F_TL SUBB, PAY_RUN_TYPES_F_TL SUBT
    where SUBB.RUN_TYPE_ID = SUBT.RUN_TYPE_ID
    and SUBB.LANGUAGE = SUBT.SOURCE_LANG
    and (SUBB.RUN_TYPE_NAME <> SUBT.RUN_TYPE_NAME
      or (SUBB.RUN_TYPE_NAME is null and SUBT.RUN_TYPE_NAME is not null)
      or (SUBB.RUN_TYPE_NAME is not null and SUBT.RUN_TYPE_NAME is null)
      or SUBB.SHORTNAME <> SUBT.SHORTNAME
      or (SUBB.SHORTNAME is null and SUBT.SHORTNAME is not null)
      or (SUBB.SHORTNAME is not null and SUBT.SHORTNAME is null)
  ));
Line: 213

  insert into PAY_RUN_TYPES_F_TL (
    RUN_TYPE_ID,
    RUN_TYPE_NAME,
    SHORTNAME,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    LAST_UPDATE_LOGIN,
    CREATED_BY,
    CREATION_DATE,
    LANGUAGE,
    SOURCE_LANG
  ) select
    B.RUN_TYPE_ID,
    B.RUN_TYPE_NAME,
    B.SHORTNAME,
    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_RUN_TYPES_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_RUN_TYPES_F_TL T
    where T.RUN_TYPE_ID = B.RUN_TYPE_ID
    and T.LANGUAGE = L.LANGUAGE_CODE);