DBA Data[Home] [Help]

APPS.BEN_PD_RATE_AND_CVG_MODULE SQL Statements

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

Line: 36

     select copy_entity_result_id mirror_src_entity_result_id
     from ben_copy_entity_results cpe,
           pqh_table_route trt
     where cpe.information1= c_parent_pk_id
     and   cpe.result_type_cd = 'DISPLAY'
     and   cpe.copy_entity_txn_id = c_copy_entity_txn_id
     and   cpe.table_route_id = trt.table_route_id
     and   trt.from_clause = 'OAB'
     and   trt.where_clause = upper(c_parent_table_name) ;
Line: 73

   select distinct acty_base_rt_id
   from BEN_ACTY_BASE_RT_F
   where  (c_pgm_id           is not null and c_pgm_id           = pgm_id) or
          (c_ptip_id          is not null and c_ptip_id          = ptip_id) or
          (c_plip_id          is not null and c_plip_id          = plip_id) or
          (c_pl_id            is not null and c_pl_id            = pl_id ) or
          (c_oiplip_id        is not null and c_oiplip_id        = oiplip_id) or
          (c_oipl_id          is not null and c_oipl_id          = oipl_id) or
          (c_cmbn_plip_id     is not null and c_cmbn_plip_id     = cmbn_plip_id) or
          (c_cmbn_ptip_id     is not null and c_cmbn_ptip_id     = cmbn_ptip_id) or
          (c_cmbn_ptip_opt_id is not null and c_cmbn_ptip_opt_id = cmbn_ptip_opt_id) or
          --
          (c_opt_id           is not null and c_opt_id           = opt_id);
Line: 90

   select  abr.*
   from BEN_ACTY_BASE_RT_F abr
   where  abr.acty_base_rt_id = c_acty_base_rt_id
     -- and abr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_ACTY_BASE_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_acty_base_rt_id
         -- and information4 = abr.business_group_id
           and information2 = abr.effective_start_date
           and information3 = abr.effective_end_date);
Line: 114

     select pet.element_name element_name
     from pay_element_types_f pet
     where  (pet.business_group_id is null
            or pet.business_group_id = p_business_group_id)
       and pet.element_type_id = p_id
       and p_date between nvl(pet.effective_start_date,p_date)
       and nvl(pet.effective_end_date,p_date) ;
Line: 123

     select min(effective_start_date) effective_start_date
     from pay_element_types_f
     where element_type_id = c_element_type_id;
Line: 128

     select piv.name name
     from pay_input_values_f piv
     where  ( piv.business_group_id is null or piv.business_group_id = p_business_group_id )
     and   piv.element_type_id = p_id1
     and p_date between piv.effective_start_date and
         piv.effective_end_date
     and  piv.input_value_id = p_id;
Line: 137

     select min(effective_start_date) effective_start_date
     from pay_input_values_f
     where input_value_id = c_input_value_id;
Line: 144

    select pl_id
    from ben_plip_f cpp
    where cpp.plip_id = c_plip_id
    and rownum = 1;
Line: 150

    select pl_id
    from ben_oipl_f cop
    where cop.oipl_id = c_oipl_id
    and rownum = 1;
Line: 156

    select cpp.pl_id
    from ben_oiplip_f opp,
         ben_plip_f   cpp
    where opp.oiplip_id = c_oiplip_id
    and   cpp.plip_id = opp.plip_id
    and   rownum = 1;
Line: 189

   select  acty_rt_pymt_sched_id
   from BEN_ACTY_RT_PYMT_SCHED_F
   where  ACTY_BASE_RT_ID = c_ACTY_BASE_RT_ID ;
Line: 194

   select  apf.*
   from BEN_ACTY_RT_PYMT_SCHED_F apf
   where  apf.acty_rt_pymt_sched_id = c_acty_rt_pymt_sched_id
     --and apf.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( --l_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_ACTY_RT_PYMT_SCHED_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_acty_rt_pymt_sched_id
         --and information4 = apf.business_group_id
           and information2 = apf.effective_start_date
           and information3 = apf.effective_end_date);
Line: 221

   select  pymt_sched_py_freq_id
   from BEN_PYMT_SCHED_PY_FREQ
   where  ACTY_RT_PYMT_SCHED_ID = c_ACTY_RT_PYMT_SCHED_ID ;
Line: 226

   select  psq.*
   from BEN_PYMT_SCHED_PY_FREQ psq
   where  psq.pymt_sched_py_freq_id = c_pymt_sched_py_freq_id
     --and psq.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( --c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_PYMT_SCHED_PY_FREQ'
         and cpe.table_alias = c_table_alias
         and information1 = c_pymt_sched_py_freq_id
         --and information4 = psq.business_group_id
        );
Line: 252

   select distinct actl_prem_id
   from BEN_ACTY_BASE_RT_F
   where  ACTY_BASE_RT_ID = c_ACTY_BASE_RT_ID ;
Line: 258

   select  apr.*
   from BEN_ACTL_PREM_F apr
   where  apr.actl_prem_id = c_actl_prem_id
     -- and apr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_ACTL_PREM_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_actl_prem_id
         -- and information4 = apr.business_group_id
           and information2 = apr.effective_start_date
           and information3 = apr.effective_end_date);
Line: 285

   select  acty_rt_ptd_lmt_id
   from BEN_ACTY_RT_PTD_LMT_F
   where  ACTY_BASE_RT_ID = c_ACTY_BASE_RT_ID ;
Line: 290

   select  apl.*
   from BEN_ACTY_RT_PTD_LMT_F apl
   where  apl.acty_rt_ptd_lmt_id = c_acty_rt_ptd_lmt_id
     -- and apl.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_ACTY_RT_PTD_LMT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_acty_rt_ptd_lmt_id
         -- and information4 = apl.business_group_id
           and information2 = apl.effective_start_date
           and information3 = apl.effective_end_date);
Line: 317

   select distinct acty_vrbl_rt_id
   from BEN_ACTY_VRBL_RT_F
   where  ACTY_BASE_RT_ID = c_ACTY_BASE_RT_ID ;
Line: 323

   select  avr.*
   from BEN_ACTY_VRBL_RT_F avr
   where  avr.acty_vrbl_rt_id = c_acty_vrbl_rt_id
     -- and avr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_ACTY_VRBL_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_acty_vrbl_rt_id
         -- and information4 = avr.business_group_id
           and information2 = avr.effective_start_date
           and information3 = avr.effective_end_date);
Line: 343

   select distinct cpe.information262 vrbl_rt_prfl_id
     from ben_copy_entity_results cpe
          -- pqh_table_route trt
     where copy_entity_txn_id = p_copy_entity_txn_id
     -- and trt.table_route_id = cpe.table_route_id
     and mirror_src_entity_result_id = c_mirror_src_entity_result_id
     -- and trt.where_clause = 'BEN_ACTY_VRBL_RT_F'
     and cpe.table_alias = c_table_alias
     and information1 = c_acty_vrbl_rt_id
     -- and information4 = p_business_group_id
    ;
Line: 364

   select  mtchg_rt_id
   from BEN_MTCHG_RT_F
   where  ACTY_BASE_RT_ID = c_ACTY_BASE_RT_ID ;
Line: 370

   select  mtr.*
   from BEN_MTCHG_RT_F mtr
   where  mtr.mtchg_rt_id = c_mtchg_rt_id
     -- and mtr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
        --  and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_MTCHG_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_mtchg_rt_id
         -- and information4 = mtr.business_group_id
           and information2 = mtr.effective_start_date
           and information3 = mtr.effective_end_date);
Line: 397

   select  prtl_mo_rt_prtn_val_id
   from BEN_PRTL_MO_RT_PRTN_VAL_F
   where  ACTY_BASE_RT_ID = c_ACTY_BASE_RT_ID ;
Line: 402

   select  pmr.*
   from BEN_PRTL_MO_RT_PRTN_VAL_F pmr
   where  pmr.prtl_mo_rt_prtn_val_id = c_prtl_mo_rt_prtn_val_id
     -- and pmr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_PRTL_MO_RT_PRTN_VAL_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_prtl_mo_rt_prtn_val_id
         -- and information4 = pmr.business_group_id
           and information2 = pmr.effective_start_date
           and information3 = pmr.effective_end_date);
Line: 429

   select  ptd_lmt_id
   from BEN_ACTY_RT_PTD_LMT_F
   where  ACTY_RT_PTD_LMT_ID = c_ACTY_RT_PTD_LMT_ID ;
Line: 435

   select  pdl.*
   from BEN_PTD_LMT_F pdl
   where  pdl.ptd_lmt_id = c_ptd_lmt_id
     -- and pdl.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_PTD_LMT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_ptd_lmt_id
         -- and information4 = pdl.business_group_id
           and information2 = pdl.effective_start_date
           and information3 = pdl.effective_end_date);
Line: 462

   select  extra_input_value_id
   from BEN_EXTRA_INPUT_VALUES
   where  ACTY_BASE_RT_ID = c_ACTY_BASE_RT_ID ;
Line: 467

   select  eiv.*
   from BEN_EXTRA_INPUT_VALUES eiv
   where  eiv.extra_input_value_id = c_extra_input_value_id
     -- and eiv.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_EXTRA_INPUT_VALUES'
         and cpe.table_alias = c_table_alias
         and information1 = c_extra_input_value_id
         -- and information4 = eiv.business_group_id
         );
Line: 488

   select cpe.information174 element_type_id
   from   ben_copy_entity_results cpe
          -- pqh_table_route tre
   where  cpe.information1 = c_acty_base_rt_id
   and    cpe.copy_entity_txn_id = c_copy_entity_txn_id
   -- and    cpe.table_route_id = tre.table_route_id
   and    cpe.table_alias = c_table_alias
   order by cpe.information3 desc;
Line: 507

   select  acty_base_rt_ctfn_id
   from BEN_ACTY_BASE_RT_CTFN_F
   where  ACTY_BASE_RT_ID = c_ACTY_BASE_RT_ID ;
Line: 512

   select  abc.*
   from BEN_ACTY_BASE_RT_CTFN_F abc
   where  abc.acty_base_rt_ctfn_id = c_acty_base_rt_ctfn_id
     -- and abc.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_ACTY_BASE_RT_CTFN_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_acty_base_rt_ctfn_id
         -- and information4 = abc.business_group_id
           and information2 = abc.effective_start_date
           and information3 = abc.effective_end_date);
Line: 538

     select null
     from ben_copy_entity_results cpe
          -- pqh_table_route trt
     where copy_entity_txn_id = p_copy_entity_txn_id
     -- and trt.table_route_id = cpe.table_route_id
     and cpe.table_alias = c_table_alias
     and information1 = c_pk_id;
Line: 568

      l_sql := 'select distinct acty_base_rt_id
      from BEN_ACTY_BASE_RT_F
     where  pgm_id = :Pgm_Id';
Line: 576

       l_sql := 'select distinct acty_base_rt_id
       from BEN_ACTY_BASE_RT_F
       where  ptip_id  = :Ptip_id';
Line: 584

       l_Sql := 'select distinct acty_base_rt_id
       from BEN_ACTY_BASE_RT_F
       where plip_id = :plip_id';
Line: 592

        l_sql := 'select distinct acty_base_rt_id
        from   BEN_ACTY_BASE_RT_F
        where  pl_id = :pl_Id';
Line: 600

   	l_sql := 'select distinct acty_base_rt_id
        from   BEN_ACTY_BASE_RT_F
        where  oipl_id = :oipl_id';
Line: 608

          l_sql := 'select distinct acty_base_rt_id
           from BEN_ACTY_BASE_RT_F
          where oiplip_id = :oiplip_id';
Line: 616

          l_sql := 'select distinct acty_base_rt_id
           from BEN_ACTY_BASE_RT_F
          where cmbn_plip_id = :cmbn_plip_id';
Line: 624

          l_sql := 'select distinct acty_base_rt_id
           from BEN_ACTY_BASE_RT_F
          where cmbn_ptip_id = :cmbn_ptip_id';
Line: 632

          l_sql := 'select distinct acty_base_rt_id
           from BEN_ACTY_BASE_RT_F
          where cmbn_ptip_opt_id = :cmbn_ptip_opt_id';
Line: 641

         l_sql := 'select distinct acty_base_rt_id
           from BEN_ACTY_BASE_RT_F
          where opt_id = :opt_id';
Line: 2490

     select copy_entity_result_id mirror_src_entity_result_id
     from ben_copy_entity_results cpe,
          pqh_table_route trt
     where cpe.information1= c_parent_pk_id
     and   cpe.result_type_cd = 'DISPLAY'
     and   cpe.copy_entity_txn_id = c_copy_entity_txn_id
     and   cpe.table_route_id = trt.table_route_id
     and   trt.from_clause = 'OAB'
     and   trt.where_clause = upper(c_parent_table_name) ;
Line: 2519

   select distinct cvg_amt_calc_mthd_id
   from BEN_CVG_AMT_CALC_MTHD_F
   where  (c_pl_id is not null and pl_id = c_pl_id) or
          (c_plip_id is not null and c_plip_id = plip_id) or
          (c_oipl_id is not null and c_oipl_id = oipl_id)  ;
Line: 2526

   select  ccm.*
   from BEN_CVG_AMT_CALC_MTHD_F ccm
   where  ccm.cvg_amt_calc_mthd_id = c_cvg_amt_calc_mthd_id
     -- and ccm.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_CVG_AMT_CALC_MTHD_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_cvg_amt_calc_mthd_id
         -- and information4 = ccm.business_group_id
           and information2 = ccm.effective_start_date
           and information3 = ccm.effective_end_date);
Line: 2553

   select  bnft_vrbl_rt_rl_id
   from BEN_BNFT_VRBL_RT_RL_F
   where  CVG_AMT_CALC_MTHD_ID = c_CVG_AMT_CALC_MTHD_ID ;
Line: 2558

   select  brr.*
   from BEN_BNFT_VRBL_RT_RL_F brr
   where  brr.bnft_vrbl_rt_rl_id = c_bnft_vrbl_rt_rl_id
     -- and brr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
       --  and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_BNFT_VRBL_RT_RL_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_bnft_vrbl_rt_rl_id
         -- and information4 = brr.business_group_id
           and information2 = brr.effective_start_date
           and information3 = brr.effective_end_date);
Line: 2585

   select distinct bnft_vrbl_rt_id
   from BEN_BNFT_VRBL_RT_F
   where  CVG_AMT_CALC_MTHD_ID = c_CVG_AMT_CALC_MTHD_ID ;
Line: 2591

   select  bvr.*
   from BEN_BNFT_VRBL_RT_F bvr
   where  bvr.bnft_vrbl_rt_id = c_bnft_vrbl_rt_id
     -- and bvr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_BNFT_VRBL_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_bnft_vrbl_rt_id
         -- and information4 = bvr.business_group_id
           and information2 = bvr.effective_start_date
           and information3 = bvr.effective_end_date);
Line: 2611

   select distinct cpe.information262 vrbl_rt_prfl_id
     from ben_copy_entity_results cpe
          -- pqh_table_route trt
     where copy_entity_txn_id = p_copy_entity_txn_id
     -- and trt.table_route_id = cpe.table_route_id
     and mirror_src_entity_result_id = c_mirror_src_entity_result_id
     -- and trt.where_clause = 'BEN_BNFT_VRBL_RT_F'
     and cpe.table_alias = c_table_alias
     and information1 = c_bnft_vrbl_rt_id
     -- and information4 = p_business_group_id
    ;
Line: 3127

     select copy_entity_result_id mirror_src_entity_result_id
     from ben_copy_entity_results cpe,
          pqh_table_route trt
     where cpe.information1= c_parent_pk_id
     and   cpe.result_type_cd = 'DISPLAY'
     and   cpe.copy_entity_txn_id = c_copy_entity_txn_id
     and   cpe.table_route_id = trt.table_route_id
     and   trt.from_clause = 'OAB'
     and   trt.where_clause = upper(c_parent_table_name) ;
Line: 3156

   select distinct actl_prem_id
   from BEN_ACTL_PREM_F
   where  (c_pl_id is not null and pl_id = c_pl_id ) or
          (c_oipl_id is not null and oipl_id = c_oipl_id) ;
Line: 3163

   select  apr.*
   from BEN_ACTL_PREM_F apr
   where  apr.actl_prem_id = c_actl_prem_id
     -- and apr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_ACTL_PREM_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_actl_prem_id
         -- and information4 = apr.business_group_id
           and information2 = apr.effective_start_date
           and information3 = apr.effective_end_date);
Line: 3191

   select  prtl_mo_rt_prtn_val_id
   from BEN_PRTL_MO_RT_PRTN_VAL_F
   where  ACTL_PREM_ID = c_ACTL_PREM_ID;
Line: 3196

   select  pmr.*
   from BEN_PRTL_MO_RT_PRTN_VAL_F pmr
   where  pmr.prtl_mo_rt_prtn_val_id = c_prtl_mo_rt_prtn_val_id
     -- and pmr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_PRTL_MO_RT_PRTN_VAL_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_prtl_mo_rt_prtn_val_id
         -- and information4 = pmr.business_group_id
           and information2 = pmr.effective_start_date
           and information3 = pmr.effective_end_date);
Line: 3223

   select distinct actl_prem_vrbl_rt_id
   from BEN_ACTL_PREM_VRBL_RT_F
   where  ACTL_PREM_ID = c_ACTL_PREM_ID ;
Line: 3228

   select  apv.*
   from BEN_ACTL_PREM_VRBL_RT_F apv
   where  apv.actl_prem_vrbl_rt_id = c_actl_prem_vrbl_rt_id
     -- and apv.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_ACTL_PREM_VRBL_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_actl_prem_vrbl_rt_id
         -- and information4 = apv.business_group_id
           and information2 = apv.effective_start_date
           and information3 = apv.effective_end_date);
Line: 3248

   select distinct cpe.information262 vrbl_rt_prfl_id
     from ben_copy_entity_results cpe
          -- pqh_table_route trt
     where copy_entity_txn_id = p_copy_entity_txn_id
     -- and trt.table_route_id = cpe.table_route_id
     and mirror_src_entity_result_id = c_mirror_src_entity_result_id
     -- and trt.where_clause = 'BEN_ACTL_PREM_VRBL_RT_F'
     and cpe.table_alias = c_table_alias
     and information1 = c_actl_prem_vrbl_rt_id
     -- and information4 = p_business_group_id
    ;
Line: 3270

   select  actl_prem_vrbl_rt_rl_id
   from BEN_ACTL_PREM_VRBL_RT_RL_F
   where  ACTL_PREM_ID = c_ACTL_PREM_ID ;
Line: 3275

   select  ava.*
   from BEN_ACTL_PREM_VRBL_RT_RL_F ava
   where  ava.actl_prem_vrbl_rt_rl_id = c_actl_prem_vrbl_rt_rl_id
     -- and ava.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_ACTL_PREM_VRBL_RT_RL_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_actl_prem_vrbl_rt_rl_id
         -- and information4 = ava.business_group_id
           and information2 = ava.effective_start_date
           and information3 = ava.effective_end_date);
Line: 4014

     select copy_entity_result_id mirror_src_entity_result_id
     from ben_copy_entity_results cpe,
        pqh_table_route trt
     where cpe.information1= c_parent_pk_id
     and   cpe.result_type_cd = 'DISPLAY'
     and   cpe.copy_entity_txn_id = c_copy_entity_txn_id
     and   cpe.table_route_id = trt.table_route_id
     and   trt.from_clause = 'OAB'
     and   trt.where_clause = upper(c_parent_table_name) ;
Line: 4041

     select min(cpe.information2) min_esd
     from   ben_copy_entity_results cpe
            -- pqh_table_route trt
     where  cpe.information1= c_parent_pk_id
     and    cpe.copy_entity_txn_id = c_copy_entity_txn_id
     --and    cpe.table_route_id = trt.table_route_id
     and    cpe.table_alias = c_parent_table_alias;
Line: 4064

   select  agf.*
   from BEN_AGE_FCTR agf
   where  agf.age_fctr_id = c_age_fctr_id
     -- and agf.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_AGE_FCTR'
         and cpe.table_alias = c_table_alias
         and information1 = c_age_fctr_id
         -- and information4 = agf.business_group_id
        );
Line: 4090

   select  cla.*
   from BEN_CMBN_AGE_LOS_FCTR cla
   where  cla.cmbn_age_los_fctr_id = c_cmbn_age_los_fctr_id
     -- and cla.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_CMBN_AGE_LOS_FCTR'
         and cpe.table_alias = c_table_alias
         and information1 = c_cmbn_age_los_fctr_id
         -- and information4 = cla.business_group_id
        );
Line: 4118

   select  clf.*
   from BEN_COMP_LVL_FCTR clf
   where  clf.comp_lvl_fctr_id = c_comp_lvl_fctr_id
     -- and clf.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_COMP_LVL_FCTR'
         and cpe.table_alias = c_table_alias
         and information1 = c_comp_lvl_fctr_id
         -- and information4 = clf.business_group_id
        );
Line: 4139

   select distinct cpe.information225 bnfts_bal_id
     from ben_copy_entity_results cpe
          -- pqh_table_route trt
     where copy_entity_txn_id = p_copy_entity_txn_id
     -- and trt.table_route_id = cpe.table_route_id
     and mirror_src_entity_result_id = c_mirror_src_entity_result_id
     -- and trt.where_clause = 'BEN_COMP_LVL_FCTR'
     and cpe.table_alias = c_table_alias
     and information1 = c_comp_lvl_fctr_id
     -- and information4 = p_business_group_id
    ;
Line: 4157

   select  hwf.*
   from BEN_HRS_WKD_IN_PERD_FCTR hwf
   where  hwf.hrs_wkd_in_perd_fctr_id = c_hrs_wkd_in_perd_fctr_id
     -- and hwf.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_HRS_WKD_IN_PERD_FCTR'
         and cpe.table_alias = c_table_alias
         and information1 = c_hrs_wkd_in_perd_fctr_id
         -- and information4 = hwf.business_group_id
        );
Line: 4179

   select distinct cpe.information225 bnfts_bal_id
     from ben_copy_entity_results cpe
          -- pqh_table_route trt
     where copy_entity_txn_id = p_copy_entity_txn_id
     -- and trt.table_route_id = cpe.table_route_id
     and mirror_src_entity_result_id = c_mirror_src_entity_result_id
     -- and trt.where_clause = 'BEN_HRS_WKD_IN_PERD_FCTR'
     and cpe.table_alias = c_table_alias
     and information1 = c_hrs_wkd_in_perd_fctr_id
     -- and information4 = p_business_group_id
    ;
Line: 4198

   select  lsf.*
   from BEN_LOS_FCTR lsf
   where  lsf.los_fctr_id = c_los_fctr_id
     -- and lsf.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_LOS_FCTR'
         and cpe.table_alias = c_table_alias
         and information1 = c_los_fctr_id
         -- and information4 = lsf.business_group_id
        );
Line: 4224

   select  pff.*
   from BEN_PCT_FL_TM_FCTR pff
   where  pff.pct_fl_tm_fctr_id = c_pct_fl_tm_fctr_id
     -- and pff.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_PCT_FL_TM_FCTR'
         and cpe.table_alias = c_table_alias
         and information1 = c_pct_fl_tm_fctr_id
         -- and information4 = pff.business_group_id
        );
Line: 4247

      select  pbt.balance_name||' - '||pbd.dimension_name dsp_name
             -- pdb.defined_balance_id defined_balance_id
      from pay_balance_types pbt,
           pay_balance_dimensions pbd,
           pay_defined_balances pdb
      where nvl(pdb.business_group_id, p_business_group_id) = p_business_group_id
        and pdb.balance_type_id = pbt.balance_type_id
        and pdb.balance_dimension_id = pbd.balance_dimension_id
        and pdb.defined_balance_id = p_defined_balance_id ;
Line: 4274

    select null
    from ben_copy_entity_results cpe
         -- pqh_table_route trt
    where copy_entity_txn_id = p_copy_entity_txn_id
    -- and trt.table_route_id = cpe.table_route_id
    and cpe.table_alias = c_table_alias
    and information1 = c_pk_id;
Line: 5448

    select  distinct vrbl_rt_elig_prfl_id
    from BEN_VRBL_RT_ELIG_PRFL_F
    where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 5454

    select  vep.*
    from BEN_VRBL_RT_ELIG_PRFL_F vep
    where  vep.vrbl_rt_elig_prfl_id = c_vrbl_rt_elig_prfl_id
     -- and vep.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_VRBL_RT_ELIG_PRFL_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_vrbl_rt_elig_prfl_id
         -- and information4 = vep.business_group_id
         and information2 = vep.effective_start_date
         and information3 = vep.effective_end_date
        );
Line: 5489

      select  distinct eligy_prfl_id
      from BEN_VRBL_RT_ELIG_PRFL_F
      where VRBL_RT_ELIG_PRFL_ID = c_VRBL_RT_ELIG_PRFL_ID;
Line: 5684

     select copy_entity_result_id mirror_src_entity_result_id
     from ben_copy_entity_results cpe,
        pqh_table_route trt
     where cpe.information1= c_parent_pk_id
     and   cpe.result_type_cd = 'DISPLAY'
     and   cpe.copy_entity_txn_id = c_copy_entity_txn_id
     and   cpe.table_route_id = trt.table_route_id
     and   trt.from_clause = 'OAB'
     and   trt.where_clause = upper(c_parent_table_name) ;
Line: 5721

   select  vpf.*
   from BEN_VRBL_RT_PRFL_F vpf
   where  vpf.vrbl_rt_prfl_id = c_vrbl_rt_prfl_id
     -- and vpf.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_VRBL_RT_PRFL_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_vrbl_rt_prfl_id
         -- and information4 = vpf.business_group_id
           and information2 = vpf.effective_start_date
           and information3 = vpf.effective_end_date);
Line: 5748

   select distinct age_rt_id
   from BEN_AGE_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 5754

   select  art.*
   from BEN_AGE_RT_F art
   where  art.age_rt_id = c_age_rt_id
     -- and art.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_AGE_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_age_rt_id
         -- and information4 = art.business_group_id
           and information2 = art.effective_start_date
           and information3 = art.effective_end_date);
Line: 5777

   select distinct cpe.information246 age_fctr_id
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and mirror_src_entity_result_id = c_mirror_src_entity_result_id
         -- and trt.where_clause = 'BEN_AGE_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_age_rt_id
         -- and information4 = p_business_group_id
        ;
Line: 5795

   select  asnt_set_rt_id
   from BEN_ASNT_SET_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 5801

   select  asr.*
   from BEN_ASNT_SET_RT_F asr
   where  asr.asnt_set_rt_id = c_asnt_set_rt_id
     -- and asr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_ASNT_SET_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_asnt_set_rt_id
         -- and information4 = asr.business_group_id
           and information2 = asr.effective_start_date
           and information3 = asr.effective_end_date);
Line: 5825

      select assignment_set_name
      from hr_assignment_sets
      where business_group_id = p_business_group_id
        and assignment_set_id = p_id;
Line: 5837

   select distinct benfts_grp_rt_id
   from BEN_BENFTS_GRP_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 5843

   select  brg.*
   from BEN_BENFTS_GRP_RT_F brg
   where  brg.benfts_grp_rt_id = c_benfts_grp_rt_id
     -- and brg.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_BENFTS_GRP_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_benfts_grp_rt_id
         -- and information4 = brg.business_group_id
           and information2 = brg.effective_start_date
           and information3 = brg.effective_end_date);
Line: 5865

   select distinct cpe.information222 benfts_grp_id
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and mirror_src_entity_result_id = c_mirror_src_entity_result_id
         -- and trt.where_clause = 'BEN_BENFTS_GRP_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_benfts_grp_rt_id
         -- and information4 = p_business_group_id
        ;
Line: 5884

   select  brgng_unit_rt_id
   from BEN_BRGNG_UNIT_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 5890

   select  bur.*
   from BEN_BRGNG_UNIT_RT_F bur
   where  bur.brgng_unit_rt_id = c_brgng_unit_rt_id
     -- and bur.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_BRGNG_UNIT_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_brgng_unit_rt_id
         -- and information4 = bur.business_group_id
           and information2 = bur.effective_start_date
           and information3 = bur.effective_end_date);
Line: 5917

   select distinct cmbn_age_los_rt_id
   from BEN_CMBN_AGE_LOS_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 5922

   select  cmr.*
   from BEN_CMBN_AGE_LOS_RT_F cmr
   where  cmr.cmbn_age_los_rt_id = c_cmbn_age_los_rt_id
     -- and cmr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_CMBN_AGE_LOS_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_cmbn_age_los_rt_id
         -- and information4 = cmr.business_group_id
           and information2 = cmr.effective_start_date
           and information3 = cmr.effective_end_date);
Line: 5944

   select distinct cpe.information223 cmbn_age_los_fctr_id
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and mirror_src_entity_result_id = c_mirror_src_entity_result_id
         -- and trt.where_clause = 'BEN_CMBN_AGE_LOS_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_cmbn_age_los_rt_id
         -- and information4 = p_business_group_id
        ;
Line: 5962

   select distinct comp_lvl_rt_id
   from BEN_COMP_LVL_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 5968

   select  clr.*
   from BEN_COMP_LVL_RT_F clr
   where  clr.comp_lvl_rt_id = c_comp_lvl_rt_id
     -- and clr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_COMP_LVL_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_comp_lvl_rt_id
         -- and information4 = clr.business_group_id
           and information2 = clr.effective_start_date
           and information3 = clr.effective_end_date);
Line: 5990

   select distinct cpe.information254 comp_lvl_fctr_id
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and mirror_src_entity_result_id = c_mirror_src_entity_result_id
         -- and trt.where_clause = 'BEN_COMP_LVL_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_comp_lvl_rt_id
         -- and information4 = p_business_group_id
        ;
Line: 6008

   select  dsbld_rt_id
   from BEN_DSBLD_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6014

   select  dbr.*
   from BEN_DSBLD_RT_F dbr
   where  dbr.dsbld_rt_id = c_dsbld_rt_id
     -- and dbr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_DSBLD_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_dsbld_rt_id
         -- and information4 = dbr.business_group_id
           and information2 = dbr.effective_start_date
           and information3 = dbr.effective_end_date);
Line: 6041

   select  ee_stat_rt_id
   from BEN_EE_STAT_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6047

   select  esr.*
   from BEN_EE_STAT_RT_F esr
   where  esr.ee_stat_rt_id = c_ee_stat_rt_id
     -- and esr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_EE_STAT_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_ee_stat_rt_id
         -- and information4 = esr.business_group_id
           and information2 = esr.effective_start_date
           and information3 = esr.effective_end_date);
Line: 6071

      select nvl(atl.user_status, stl.user_status) dsp_meaning
      from per_assignment_status_types s,
           per_ass_status_type_amends a ,
           per_business_groups bus ,
           per_assignment_status_types_tl stl ,
           per_ass_status_type_amends_tl atl
      where a.assignment_status_type_id (+) = s.assignment_status_type_id
        and a.business_group_id (+) = p_business_group_id
        and nvl(s.business_group_id, p_business_group_id) = p_business_group_id
        and nvl(s.legislation_code, bus.legislation_code) = bus.legislation_code
        -- and bus.business_group_id = p_business_group_id
        and bus.business_group_id = nvl(s.business_group_id, p_business_group_id)
        and s.assignment_status_type_id = p_id
        and nvl(a.active_flag, s.active_flag) = 'Y'
        and atl.ass_status_type_amend_id (+) = a.ass_status_type_amend_id
        and atl.language (+) = userenv('LANG')
        and stl.assignment_status_type_id = s.assignment_status_type_id
        and stl.language  = userenv('LANG');
Line: 6097

   select  fl_tm_pt_tm_rt_id
   from BEN_FL_TM_PT_TM_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6103

   select  ftr.*
   from BEN_FL_TM_PT_TM_RT_F ftr
   where  ftr.fl_tm_pt_tm_rt_id = c_fl_tm_pt_tm_rt_id
     -- and ftr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_FL_TM_PT_TM_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_fl_tm_pt_tm_rt_id
         -- and information4 = ftr.business_group_id
           and information2 = ftr.effective_start_date
           and information3 = ftr.effective_end_date);
Line: 6131

   select  gndr_rt_id
   from BEN_GNDR_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6137

   select  gnr.*
   from BEN_GNDR_RT_F gnr
   where  gnr.gndr_rt_id = c_gndr_rt_id
     -- and gnr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_GNDR_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_gndr_rt_id
         -- and information4 = gnr.business_group_id
           and information2 = gnr.effective_start_date
           and information3 = gnr.effective_end_date);
Line: 6164

   select  grade_rt_id
   from BEN_GRADE_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6170

   select  grr.*
   from BEN_GRADE_RT_F grr
   where  grr.grade_rt_id = c_grade_rt_id
     -- and grr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_GRADE_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_grade_rt_id
         -- and information4 = grr.business_group_id
           and information2 = grr.effective_start_date
           and information3 = grr.effective_end_date);
Line: 6192

      select gra.name dsp_name
      from per_grades_vl gra
      where business_group_id  = p_business_group_id
        and gra.grade_id = p_id
        and p_date between date_from and nvl(date_to, p_date) ;
Line: 6200

    select date_from
    from per_grades
    where grade_id = c_grade_id;
Line: 6212

   select  hrly_slrd_rt_id
   from BEN_HRLY_SLRD_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6218

   select  hsr.*
   from BEN_HRLY_SLRD_RT_F hsr
   where  hsr.hrly_slrd_rt_id = c_hrly_slrd_rt_id
     -- and hsr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_HRLY_SLRD_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_hrly_slrd_rt_id
         -- and information4 = hsr.business_group_id
           and information2 = hsr.effective_start_date
           and information3 = hsr.effective_end_date);
Line: 6245

   select distinct hrs_wkd_in_perd_rt_id
   from BEN_HRS_WKD_IN_PERD_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6250

   select  hwr.*
   from BEN_HRS_WKD_IN_PERD_RT_F hwr
   where  hwr.hrs_wkd_in_perd_rt_id = c_hrs_wkd_in_perd_rt_id
     -- and hwr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_HRS_WKD_IN_PERD_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_hrs_wkd_in_perd_rt_id
         -- and information4 = hwr.business_group_id
           and information2 = hwr.effective_start_date
           and information3 = hwr.effective_end_date);
Line: 6272

   select distinct cpe.information224 hrs_wkd_in_perd_fctr_id
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and mirror_src_entity_result_id = c_mirror_src_entity_result_id
         -- and trt.where_clause = 'BEN_HRS_WKD_IN_PERD_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_hrs_wkd_in_perd_rt_id
         -- and information4 = p_business_group_id
        ;
Line: 6290

   select  lbr_mmbr_rt_id
   from BEN_LBR_MMBR_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6296

   select  lmm.*
   from BEN_LBR_MMBR_RT_F lmm
   where  lmm.lbr_mmbr_rt_id = c_lbr_mmbr_rt_id
     -- and lmm.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_LBR_MMBR_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_lbr_mmbr_rt_id
         -- and information4 = lmm.business_group_id
           and information2 = lmm.effective_start_date
           and information3 = lmm.effective_end_date);
Line: 6323

   select  lgl_enty_rt_id
   from BEN_LGL_ENTY_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6329

   select  ler.*
   from BEN_LGL_ENTY_RT_F ler
   where  ler.lgl_enty_rt_id = c_lgl_enty_rt_id
     -- and ler.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_LGL_ENTY_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_lgl_enty_rt_id
         -- and information4 = ler.business_group_id
           and information2 = ler.effective_start_date
           and information3 = ler.effective_end_date);
Line: 6353

      select hou.name dsp_name
      from hr_organization_units_v hou ,
           hr_organization_information hoi
      where business_group_id  = p_business_group_id
        and hou.organization_id = p_id
        and p_date between date_from and nvl(date_to, p_date)
        and hou.organization_id = hoi.organization_id
        and hoi.org_information2 = 'Y'
        and hoi.org_information1 = 'HR_LEGAL'
        and hoi.org_information_context || '' ='CLASS' ;
Line: 6365

   select date_from
   from hr_all_organization_units
   where organization_id = c_organization_id;
Line: 6377

   select  loa_rsn_rt_id
   from BEN_LOA_RSN_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6383

   select  lar.*
   from BEN_LOA_RSN_RT_F lar
   where  lar.loa_rsn_rt_id = c_loa_rsn_rt_id
     -- and lar.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_LOA_RSN_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_loa_rsn_rt_id
         -- and information4 = lar.business_group_id
           and information2 = lar.effective_start_date
           and information3 = lar.effective_end_date);
Line: 6408

      select abt.name
      from per_absence_attendance_types abt
      where abt.business_group_id = p_business_group_id
        and abt.absence_attendance_type_id  = p_id
        and  p_date between abt.date_effective
        and nvl(abt.date_end, p_date);
Line: 6417

      select hl.meaning name
      from per_abs_attendance_reasons abr,
           hr_leg_lookups hl
      where abr.business_group_id = p_business_group_id
        and abr.absence_attendance_type_id = p_id
        and abr.abs_attendance_reason_id = p_id1
        and abr.name = hl.lookup_code
        and hl.lookup_type = 'ABSENCE_REASON'
        and hl.enabled_flag = 'Y'
        and p_date between
        nvl(hl.start_date_active, p_date)
        and nvl(hl.end_date_active, p_date);
Line: 6432

     select date_effective
     from per_absence_attendance_types
     where absence_attendance_type_id = c_absence_attendance_type_id;
Line: 6444

   select distinct los_rt_id
   from BEN_LOS_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6450

   select  lsr.*
   from BEN_LOS_RT_F lsr
   where  lsr.los_rt_id = c_los_rt_id
     -- and lsr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_LOS_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_los_rt_id
         -- and information4 = lsr.business_group_id
           and information2 = lsr.effective_start_date
           and information3 = lsr.effective_end_date);
Line: 6473

   select distinct cpe.information243 los_fctr_id
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and mirror_src_entity_result_id = c_mirror_src_entity_result_id
         -- and trt.where_clause = 'BEN_LOS_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_los_rt_id
         -- and information4 = p_business_group_id
        ;
Line: 6491

   select  lvg_rsn_rt_id
   from BEN_LVG_RSN_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6497

   select  lrn.*
   from BEN_LVG_RSN_RT_F lrn
   where  lrn.lvg_rsn_rt_id = c_lvg_rsn_rt_id
     -- and lrn.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_LVG_RSN_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_lvg_rsn_rt_id
         -- and information4 = lrn.business_group_id
           and information2 = lrn.effective_start_date
           and information3 = lrn.effective_end_date);
Line: 6524

   select  org_unit_rt_id
   from BEN_ORG_UNIT_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6530

   select  our.*
   from BEN_ORG_UNIT_RT_F our
   where  our.org_unit_rt_id = c_org_unit_rt_id
     -- and our.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_ORG_UNIT_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_org_unit_rt_id
         -- and information4 = our.business_group_id
           and information2 = our.effective_start_date
           and information3 = our.effective_end_date);
Line: 6554

           select name
           from hr_all_organization_units_vl
           where business_group_id = business_group_id
             and organization_id = p_id
             and internal_external_flag = 'INT'
             and p_date between nvl(date_from, p_date)
                   and nvl(date_to, p_date)
             order by name;
Line: 6572

   select distinct pct_fl_tm_rt_id
   from BEN_PCT_FL_TM_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6578

   select  pfr.*
   from BEN_PCT_FL_TM_RT_F pfr
   where  pfr.pct_fl_tm_rt_id = c_pct_fl_tm_rt_id
     -- and pfr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_PCT_FL_TM_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_pct_fl_tm_rt_id
         -- and information4 = pfr.business_group_id
           and information2 = pfr.effective_start_date
           and information3 = pfr.effective_end_date);
Line: 6600

   select distinct cpe.information233 pct_fl_tm_fctr_id
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and mirror_src_entity_result_id = c_mirror_src_entity_result_id
         -- and trt.where_clause = 'BEN_PCT_FL_TM_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_pct_fl_tm_rt_id
         -- and information4 = p_business_group_id
        ;
Line: 6618

   select  per_typ_rt_id
   from BEN_PER_TYP_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6624

   select  ptr.*
   from BEN_PER_TYP_RT_F ptr
   where  ptr.per_typ_rt_id = c_per_typ_rt_id
     -- and ptr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_PER_TYP_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_per_typ_rt_id
         -- and information4 = ptr.business_group_id
           and information2 = ptr.effective_start_date
           and information3 = ptr.effective_end_date);
Line: 6648

      select ptl.user_person_type
      from per_person_types ppt,
         hr_leg_lookups hrlkup,
         per_person_types_tl ptl
    where active_flag = 'Y'
      -- and business_group_id = p_business_group_id
      and hrlkup.lookup_type = 'PERSON_TYPE'
      and hrlkup.lookup_code =  ppt.system_person_type
      and ppt.active_flag = 'Y'
      and ppt.person_type_id = p_person_typ_id
      and ppt.person_type_id = ptl.person_type_id
      and ptl.language = userenv('LANG');
Line: 6671

   select  poe_rt_id
   from BEN_POE_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6677

   select  prt.*
   from BEN_POE_RT_F prt
   where  prt.poe_rt_id = c_poe_rt_id
     -- and prt.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_POE_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_poe_rt_id
         -- and information4 = prt.business_group_id
           and information2 = prt.effective_start_date
           and information3 = prt.effective_end_date);
Line: 6704

   select  ppl_grp_rt_id
   from BEN_PPL_GRP_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6710

   select  pgr.*
   from BEN_PPL_GRP_RT_F pgr
   where  pgr.ppl_grp_rt_id = c_ppl_grp_rt_id
     -- and pgr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_PPL_GRP_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_ppl_grp_rt_id
         -- and information4 = pgr.business_group_id
           and information2 = pgr.effective_start_date
           and information3 = pgr.effective_end_date);
Line: 6737

   select distinct pstl_zip_rt_id
   from BEN_PSTL_ZIP_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6743

   select  pzr.*
   from BEN_PSTL_ZIP_RT_F pzr
   where  pzr.pstl_zip_rt_id = c_pstl_zip_rt_id
     -- and pzr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_PSTL_ZIP_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_pstl_zip_rt_id
         -- and information4 = pzr.business_group_id
           and information2 = pzr.effective_start_date
           and information3 = pzr.effective_end_date);
Line: 6765

   select distinct cpe.information245 pstl_zip_rng_id
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and mirror_src_entity_result_id = c_mirror_src_entity_result_id
         -- and trt.where_clause = 'BEN_PSTL_ZIP_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_pstl_zip_rt_id
         -- and information4 = p_business_group_id
        ;
Line: 6783

   select  pyrl_rt_id
   from BEN_PYRL_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6789

   select  pr_.*
   from BEN_PYRL_RT_F pr_
   where  pr_.pyrl_rt_id = c_pyrl_rt_id
     -- and pr_.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_PYRL_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_pyrl_rt_id
         -- and information4 = pr_.business_group_id
           and information2 = pr_.effective_start_date
           and information3 = pr_.effective_end_date);
Line: 6811

      select prl.payroll_name dsp_payroll_name
      from pay_all_payrolls_f prl
      where prl.business_group_id  = p_business_group_id
        and prl.payroll_id = p_id
        and p_date between prl.effective_start_date and prl.effective_end_date ;
Line: 6819

    select min(effective_start_date) effective_start_date
    from pay_all_payrolls_f
    where payroll_id = c_payroll_id;
Line: 6831

   select  py_bss_rt_id
   from BEN_PY_BSS_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6837

   select  pbr.*
   from BEN_PY_BSS_RT_F pbr
   where  pbr.py_bss_rt_id = c_py_bss_rt_id
     -- and pbr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_PY_BSS_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_py_bss_rt_id
         -- and information4 = pbr.business_group_id
           and information2 = pbr.effective_start_date
           and information3 = pbr.effective_end_date);
Line: 6859

     select name from per_pay_bases
     where business_group_id = p_business_group_id
       and pay_basis_id = p_id;
Line: 6872

   select  schedd_hrs_rt_id
   from BEN_SCHEDD_HRS_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6878

   select  shr.*
   from BEN_SCHEDD_HRS_RT_F shr
   where  shr.schedd_hrs_rt_id = c_schedd_hrs_rt_id
     -- and shr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_SCHEDD_HRS_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_schedd_hrs_rt_id
         -- and information4 = shr.business_group_id
           and information2 = shr.effective_start_date
           and information3 = shr.effective_end_date);
Line: 6905

   select distinct svc_area_rt_id
   from BEN_SVC_AREA_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6911

   select  sar.*
   from BEN_SVC_AREA_RT_F sar
   where  sar.svc_area_rt_id = c_svc_area_rt_id
     -- and sar.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_SVC_AREA_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_svc_area_rt_id
         -- and information4 = sar.business_group_id
           and information2 = sar.effective_start_date
           and information3 = sar.effective_end_date);
Line: 6933

   select distinct cpe.information241   svc_area_id
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and mirror_src_entity_result_id = c_mirror_src_entity_result_id
         -- and trt.where_clause = 'BEN_SVC_AREA_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_svc_area_rt_id
         -- and information4 = p_business_group_id
        ;
Line: 6951

   select  tbco_use_rt_id
   from BEN_TBCO_USE_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6957

   select  tur.*
   from BEN_TBCO_USE_RT_F tur
   where  tur.tbco_use_rt_id = c_tbco_use_rt_id
     -- and tur.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_TBCO_USE_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_tbco_use_rt_id
         -- and information4 = tur.business_group_id
           and information2 = tur.effective_start_date
           and information3 = tur.effective_end_date);
Line: 6984

   select  ttl_cvg_vol_rt_id
   from BEN_TTL_CVG_VOL_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 6990

   select  tcv.*
   from BEN_TTL_CVG_VOL_RT_F tcv
   where  tcv.ttl_cvg_vol_rt_id = c_ttl_cvg_vol_rt_id
     -- and tcv.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_TTL_CVG_VOL_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_ttl_cvg_vol_rt_id
         -- and information4 = tcv.business_group_id
           and information2 = tcv.effective_start_date
           and information3 = tcv.effective_end_date);
Line: 7017

   select  ttl_prtt_rt_id
   from BEN_TTL_PRTT_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7023

   select  ttp.*
   from BEN_TTL_PRTT_RT_F ttp
   where  ttp.ttl_prtt_rt_id = c_ttl_prtt_rt_id
     -- and ttp.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_TTL_PRTT_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_ttl_prtt_rt_id
         -- and information4 = ttp.business_group_id
           and information2 = ttp.effective_start_date
           and information3 = ttp.effective_end_date);
Line: 7050

   select  vrbl_mtchg_rt_id
   from BEN_VRBL_MTCHG_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7056

   select  vmr.*
   from BEN_VRBL_MTCHG_RT_F vmr
   where  vmr.vrbl_mtchg_rt_id = c_vrbl_mtchg_rt_id
     -- and vmr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_VRBL_MTCHG_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_vrbl_mtchg_rt_id
         -- and information4 = vmr.business_group_id
           and information2 = vmr.effective_start_date
           and information3 = vmr.effective_end_date);
Line: 7083

   select  vrbl_rt_prfl_rl_id
   from BEN_VRBL_RT_PRFL_RL_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7088

   select  vpr.*
   from BEN_VRBL_RT_PRFL_RL_F vpr
   where  vpr.vrbl_rt_prfl_rl_id = c_vrbl_rt_prfl_rl_id
     -- and vpr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_VRBL_RT_PRFL_RL_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_vrbl_rt_prfl_rl_id
         -- and information4 = vpr.business_group_id
           and information2 = vpr.effective_start_date
           and information3 = vpr.effective_end_date);
Line: 7115

   select  wk_loc_rt_id
   from BEN_WK_LOC_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7121

   select  wlr.*
   from BEN_WK_LOC_RT_F wlr
   where  wlr.wk_loc_rt_id = c_wk_loc_rt_id
     -- and wlr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_WK_LOC_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_wk_loc_rt_id
         -- and information4 = wlr.business_group_id
           and information2 = wlr.effective_start_date
           and information3 = wlr.effective_end_date);
Line: 7145

      select loc.location_code dsp_location_code
      from hr_locations loc
      where loc.location_id = p_id
        and p_date <= nvl( loc.inactive_date, p_date);
Line: 7151

    select inactive_date
    from hr_locations
    where location_id = c_location_id;
Line: 7163

   select  comptncy_rt_id
   from BEN_COMPTNCY_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7169

   select  cty.*
   from BEN_COMPTNCY_RT_F cty
   where  cty.comptncy_rt_id = c_comptncy_rt_id
     -- and cty.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_COMPTNCY_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_comptncy_rt_id
         -- and information4 = cty.business_group_id
           and information2 = cty.effective_start_date
           and information3 = cty.effective_end_date);
Line: 7191

    select name
      from per_competences_vl
     where COMPETENCE_ID = p_COMPETENCE_ID
       and p_date
           between  Date_from  and nvl(Date_to, p_date);
Line: 7200

     select rtl.name name
     from per_rating_levels_vl rtl
     where nvl(rtl.business_group_id, p_business_group_id) = p_business_group_id     and   rtl.rating_level_id = p_rating_level_id;
Line: 7205

   select date_from
   from per_competences
   where competence_id = c_competence_id;
Line: 7217

   select  job_rt_id
   from BEN_JOB_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7223

   select  jrt.*
   from BEN_JOB_RT_F jrt
   where  jrt.job_rt_id = c_job_rt_id
     -- and jrt.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_JOB_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_job_rt_id
         -- and information4 = jrt.business_group_id
           and information2 = jrt.effective_start_date
           and information3 = jrt.effective_end_date);
Line: 7245

      select name
      from per_jobs_vl
      where business_group_id = p_business_group_id
        and job_id = p_id
        and p_date between date_from and nvl(date_to,p_date);
Line: 7255

     select date_from
     from per_jobs
     where job_id = c_job_id;
Line: 7269

   select  pstn_rt_id
   from BEN_PSTN_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7275

   select  pst.*
   from BEN_PSTN_RT_F pst
   where  pst.pstn_rt_id = c_pstn_rt_id
     -- and pst.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_PSTN_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_pstn_rt_id
         -- and information4 = pst.business_group_id
           and information2 = pst.effective_start_date
           and information3 = pst.effective_end_date);
Line: 7297

       select name
       from per_positions
       where business_group_id = p_business_group_id
         and position_id = p_id;
Line: 7303

     select date_effective
     from per_positions
     where position_id = c_position_id;
Line: 7317

   select  qual_titl_rt_id
   from BEN_QUAL_TITL_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7323

   select  qtr.*
   from BEN_QUAL_TITL_RT_F qtr
   where  qtr.qual_titl_rt_id = c_qual_titl_rt_id
     --and qtr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_QUAL_TITL_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_qual_titl_rt_id
         -- and information4 = qtr.business_group_id
           and information2 = qtr.effective_start_date
           and information3 = qtr.effective_end_date);
Line: 7345

      select name
      from per_qualification_types_vl
      where qualification_type_id  = p_id;
Line: 7358

   select  cbr_quald_bnf_rt_id
   from BEN_CBR_QUALD_BNF_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7363

   select  cqr.*
   from BEN_CBR_QUALD_BNF_RT_F cqr
   where  cqr.cbr_quald_bnf_rt_id = c_cbr_quald_bnf_rt_id
     --and cqr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_CBR_QUALD_BNF_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_cbr_quald_bnf_rt_id
         -- and information4 = cqr.business_group_id
           and information2 = cqr.effective_start_date
           and information3 = cqr.effective_end_date);
Line: 7390

   select  cntng_prtn_prfl_rt_id
   from BEN_CNTNG_PRTN_PRFL_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7395

   select  cpn.*
   from BEN_CNTNG_PRTN_PRFL_RT_F cpn
   where  cpn.cntng_prtn_prfl_rt_id = c_cntng_prtn_prfl_rt_id
     --and cpn.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_CNTNG_PRTN_PRFL_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_cntng_prtn_prfl_rt_id
         -- and information4 = cpn.business_group_id
           and information2 = cpn.effective_start_date
           and information3 = cpn.effective_end_date);
Line: 7422

   select  dpnt_cvrd_othr_pl_rt_id
   from BEN_DPNT_CVRD_OTHR_PL_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7427

   select  dcl.*
   from BEN_DPNT_CVRD_OTHR_PL_RT_F dcl
   where  dcl.dpnt_cvrd_othr_pl_rt_id = c_dpnt_cvrd_othr_pl_rt_id
     --and dcl.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_DPNT_CVRD_OTHR_PL_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_dpnt_cvrd_othr_pl_rt_id
         -- and information4 = dcl.business_group_id
           and information2 = dcl.effective_start_date
           and information3 = dcl.effective_end_date);
Line: 7454

   select  dpnt_cvrd_plip_rt_id
   from BEN_DPNT_CVRD_PLIP_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7459

   select  dcp.*
   from BEN_DPNT_CVRD_PLIP_RT_F dcp
   where  dcp.dpnt_cvrd_plip_rt_id = c_dpnt_cvrd_plip_rt_id
     --and dcp.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_DPNT_CVRD_PLIP_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_dpnt_cvrd_plip_rt_id
         -- and information4 = dcp.business_group_id
           and information2 = dcp.effective_start_date
           and information3 = dcp.effective_end_date);
Line: 7486

   select  dpnt_cvrd_othr_ptip_rt_id
   from BEN_DPNT_CVRD_OTHR_PTIP_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7491

   select  dco.*
   from BEN_DPNT_CVRD_OTHR_PTIP_RT_F dco
   where  dco.dpnt_cvrd_othr_ptip_rt_id = c_dpnt_cvrd_othr_ptip_rt_id
     --and dco.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_DPNT_CVRD_OTHR_PTIP_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_dpnt_cvrd_othr_ptip_rt_id
         -- and information4 = dco.business_group_id
           and information2 = dco.effective_start_date
           and information3 = dco.effective_end_date);
Line: 7518

   select  dpnt_cvrd_othr_pgm_rt_id
   from BEN_DPNT_CVRD_OTHR_PGM_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7523

   select  dop.*
   from BEN_DPNT_CVRD_OTHR_PGM_RT_F dop
   where  dop.dpnt_cvrd_othr_pgm_rt_id = c_dpnt_cvrd_othr_pgm_rt_id
     --and dop.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_DPNT_CVRD_OTHR_PGM_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_dpnt_cvrd_othr_pgm_rt_id
         -- and information4 = dop.business_group_id
           and information2 = dop.effective_start_date
           and information3 = dop.effective_end_date);
Line: 7550

   select  prtt_anthr_pl_rt_id
   from BEN_PRTT_ANTHR_PL_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7555

   select  pap.*
   from BEN_PRTT_ANTHR_PL_RT_F pap
   where  pap.prtt_anthr_pl_rt_id = c_prtt_anthr_pl_rt_id
     --and pap.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_PRTT_ANTHR_PL_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_prtt_anthr_pl_rt_id
         -- and information4 = pap.business_group_id
           and information2 = pap.effective_start_date
           and information3 = pap.effective_end_date);
Line: 7582

   select  enrld_anthr_oipl_rt_id
   from BEN_ENRLD_ANTHR_OIPL_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7587

   select  eao.*
   from BEN_ENRLD_ANTHR_OIPL_RT_F eao
   where  eao.enrld_anthr_oipl_rt_id = c_enrld_anthr_oipl_rt_id
     --and eao.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_ENRLD_ANTHR_OIPL_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_enrld_anthr_oipl_rt_id
         -- and information4 = eao.business_group_id
           and information2 = eao.effective_start_date
           and information3 = eao.effective_end_date);
Line: 7614

   select  enrld_anthr_pl_rt_id
   from BEN_ENRLD_ANTHR_PL_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7619

   select  enl.*
   from BEN_ENRLD_ANTHR_PL_RT_F enl
   where  enl.enrld_anthr_pl_rt_id = c_enrld_anthr_pl_rt_id
     --and enl.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_ENRLD_ANTHR_PL_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_enrld_anthr_pl_rt_id
         -- and information4 = enl.business_group_id
           and information2 = enl.effective_start_date
           and information3 = enl.effective_end_date);
Line: 7646

   select  enrld_anthr_plip_rt_id
   from BEN_ENRLD_ANTHR_PLIP_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7651

   select  ear.*
   from BEN_ENRLD_ANTHR_PLIP_RT_F ear
   where  ear.enrld_anthr_plip_rt_id = c_enrld_anthr_plip_rt_id
     --and ear.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_ENRLD_ANTHR_PLIP_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_enrld_anthr_plip_rt_id
         -- and information4 = ear.business_group_id
           and information2 = ear.effective_start_date
           and information3 = ear.effective_end_date);
Line: 7678

   select  enrld_anthr_ptip_rt_id
   from BEN_ENRLD_ANTHR_PTIP_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7683

   select  ent.*
   from BEN_ENRLD_ANTHR_PTIP_RT_F ent
   where  ent.enrld_anthr_ptip_rt_id = c_enrld_anthr_ptip_rt_id
     --and ent.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_ENRLD_ANTHR_PTIP_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_enrld_anthr_ptip_rt_id
         -- and information4 = ent.business_group_id
           and information2 = ent.effective_start_date
           and information3 = ent.effective_end_date);
Line: 7710

   select  enrld_anthr_pgm_rt_id
   from BEN_ENRLD_ANTHR_PGM_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7715

   select  epm.*
   from BEN_ENRLD_ANTHR_PGM_RT_F epm
   where  epm.enrld_anthr_pgm_rt_id = c_enrld_anthr_pgm_rt_id
     --and epm.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_ENRLD_ANTHR_PGM_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_enrld_anthr_pgm_rt_id
         -- and information4 = epm.business_group_id
           and information2 = epm.effective_start_date
           and information3 = epm.effective_end_date);
Line: 7742

   select  no_othr_cvg_rt_id
   from BEN_NO_OTHR_CVG_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7747

   select  noc.*
   from BEN_NO_OTHR_CVG_RT_F noc
   where  noc.no_othr_cvg_rt_id = c_no_othr_cvg_rt_id
     --and noc.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_NO_OTHR_CVG_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_no_othr_cvg_rt_id
         -- and information4 = noc.business_group_id
           and information2 = noc.effective_start_date
           and information3 = noc.effective_end_date);
Line: 7774

   select  optd_mdcr_rt_id
   from BEN_OPTD_MDCR_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7780

   select  omr.*
   from BEN_OPTD_MDCR_RT_F omr
   where  omr.optd_mdcr_rt_id = c_optd_mdcr_rt_id
     --and omr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_OPTD_MDCR_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_optd_mdcr_rt_id
         -- and information4 = omr.business_group_id
           and information2 = omr.effective_start_date
           and information3 = omr.effective_end_date);
Line: 7807

   select  dpnt_othr_ptip_rt_id
   from BEN_DPNT_OTHR_PTIP_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7812

   select  dot.*
   from BEN_DPNT_OTHR_PTIP_RT_F dot
   where  dot.dpnt_othr_ptip_rt_id = c_dpnt_othr_ptip_rt_id
     --and dot.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_DPNT_OTHR_PTIP_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_dpnt_othr_ptip_rt_id
         -- and information4 = dot.business_group_id
           and information2 = dot.effective_start_date
           and information3 = dot.effective_end_date);
Line: 7839

   select  perf_rtng_rt_id
   from BEN_PERF_RTNG_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7845

   select  prr.*
   from BEN_PERF_RTNG_RT_F prr
   where  prr.perf_rtng_rt_id = c_perf_rtng_rt_id
     --and prr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_PERF_RTNG_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_perf_rtng_rt_id
         -- and information4 = prr.business_group_id
           and information2 = prr.effective_start_date
           and information3 = prr.effective_end_date);
Line: 7872

   select  qua_in_gr_rt_id
   from BEN_QUA_IN_GR_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7878

   select  qig.*
   from BEN_QUA_IN_GR_RT_F qig
   where  qig.qua_in_gr_rt_id = c_qua_in_gr_rt_id
     --and qig.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_QUA_IN_GR_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_qua_in_gr_rt_id
         -- and information4 = qig.business_group_id
           and information2 = qig.effective_start_date
           and information3 = qig.effective_end_date);
Line: 7905

   select  othr_ptip_rt_id
   from BEN_OTHR_PTIP_RT_F
   where  VRBL_RT_PRFL_ID = c_VRBL_RT_PRFL_ID ;
Line: 7911

   select  opr.*
   from BEN_OTHR_PTIP_RT_F opr
   where  opr.othr_ptip_rt_id = c_othr_ptip_rt_id
     --and opr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_OTHR_PTIP_RT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_othr_ptip_rt_id
         -- and information4 = opr.business_group_id
           and information2 = opr.effective_start_date
           and information3 = opr.effective_end_date);
Line: 7937

    select null
    from ben_copy_entity_results cpe
         -- pqh_table_route trt
    where copy_entity_txn_id = p_copy_entity_txn_id
    -- and trt.table_route_id = cpe.table_route_id
    and cpe.table_alias = c_table_alias
    and information1 = c_pk_id;
Line: 15101

     select copy_entity_result_id mirror_src_entity_result_id
     from ben_copy_entity_results cpe,
        pqh_table_route trt
     where cpe.information1= c_parent_pk_id
     and   cpe.result_type_cd = 'DISPLAY'
     and   cpe.copy_entity_txn_id = c_copy_entity_txn_id
     and   cpe.table_route_id = trt.table_route_id
     and   trt.from_clause = 'OAB'
     and   trt.where_clause = upper(c_parent_table_name) ;
Line: 15132

   select  bnft_prvdr_pool_id
   from BEN_BNFT_PRVDR_POOL_F
   where  (c_pgm_id is not null     and c_pgm_id           = pgm_id
           and ptip_id is null      and plip_id is null
           and oiplip_id is null    and cmbn_plip_id is null
           and cmbn_ptip_id is null and cmbn_ptip_opt_id is null
           ) or
          (c_ptip_id          is not null and c_ptip_id          = ptip_id) or
          (c_plip_id          is not null and c_plip_id          = plip_id) or
          (c_oiplip_id        is not null and c_oiplip_id        = oiplip_id) or
          (c_cmbn_plip_id     is not null and c_cmbn_plip_id     = cmbn_plip_id) or
          (c_cmbn_ptip_id     is not null and c_cmbn_ptip_id     = cmbn_ptip_id) or
          (c_cmbn_ptip_opt_id is not null and c_cmbn_ptip_opt_id = cmbn_ptip_opt_id ) ;
Line: 15147

   select  bpp.*
   from BEN_BNFT_PRVDR_POOL_F bpp
   where  bpp.bnft_prvdr_pool_id = c_bnft_prvdr_pool_id
     --and bpp.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_BNFT_PRVDR_POOL_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_bnft_prvdr_pool_id
         -- and information4 = bpp.business_group_id
           and information2 = bpp.effective_start_date
           and information3 = bpp.effective_end_date);
Line: 15174

   select  aplcn_to_bnft_pool_id
   from BEN_APLCN_TO_BNFT_POOL_F
   where  BNFT_PRVDR_POOL_ID = c_BNFT_PRVDR_POOL_ID ;
Line: 15179

   select  abp.*
   from BEN_APLCN_TO_BNFT_POOL_F abp
   where  abp.aplcn_to_bnft_pool_id = c_aplcn_to_bnft_pool_id
     --and abp.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_APLCN_TO_BNFT_POOL_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_aplcn_to_bnft_pool_id
         -- and information4 = abp.business_group_id
           and information2 = abp.effective_start_date
           and information3 = abp.effective_end_date);
Line: 15206

   select  bnft_pool_rlovr_rqmt_id
   from BEN_BNFT_POOL_RLOVR_RQMT_F
   where  BNFT_PRVDR_POOL_ID = c_BNFT_PRVDR_POOL_ID ;
Line: 15211

   select  bpr.*
   from BEN_BNFT_POOL_RLOVR_RQMT_F bpr
   where  bpr.bnft_pool_rlovr_rqmt_id = c_bnft_pool_rlovr_rqmt_id
     --and bpr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_BNFT_POOL_RLOVR_RQMT_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_bnft_pool_rlovr_rqmt_id
         -- and information4 = bpr.business_group_id
           and information2 = bpr.effective_start_date
           and information3 = bpr.effective_end_date);
Line: 15786

     select copy_entity_result_id mirror_src_entity_result_id
     from ben_copy_entity_results cpe,
        pqh_table_route trt
     where cpe.information1= c_parent_pk_id
     and   cpe.result_type_cd = 'DISPLAY'
     and   cpe.copy_entity_txn_id = c_copy_entity_txn_id
     and   cpe.table_route_id = trt.table_route_id
     and   trt.from_clause = 'OAB'
     and   trt.where_clause = upper(c_parent_table_name) ;
Line: 15816

   select  sva.*
   from BEN_SVC_AREA_F sva
   where  sva.svc_area_id = c_svc_area_id
     --and sva.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_SVC_AREA_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_svc_area_id
         -- and information4 = sva.business_group_id
           and information2 = sva.effective_start_date
           and information3 = sva.effective_end_date);
Line: 15843

   select distinct svc_area_pstl_zip_rng_id
   from BEN_SVC_AREA_PSTL_ZIP_RNG_F
   where  SVC_AREA_ID = c_SVC_AREA_ID ;
Line: 15848

   select  saz.*
   from BEN_SVC_AREA_PSTL_ZIP_RNG_F saz
   where  saz.svc_area_pstl_zip_rng_id = c_svc_area_pstl_zip_rng_id
     --and saz.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_SVC_AREA_PSTL_ZIP_RNG_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_svc_area_pstl_zip_rng_id
         -- and information4 = saz.business_group_id
           and information2 = saz.effective_start_date
           and information3 = saz.effective_end_date);
Line: 15870

   select distinct cpe.information245 pstl_zip_rng_id
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and mirror_src_entity_result_id = c_mirror_src_entity_result_id
         -- and trt.where_clause = 'BEN_SVC_AREA_PSTL_ZIP_RNG_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_svc_area_pstl_zip_rng_id
         -- and information4 = p_business_group_id
        ;
Line: 15888

    select null
    from ben_copy_entity_results cpe
         -- pqh_table_route trt
    where copy_entity_txn_id = p_copy_entity_txn_id
    -- and trt.table_route_id = cpe.table_route_id
    and cpe.table_alias = c_table_alias
    and information1 = c_pk_id;
Line: 16140

     select copy_entity_result_id mirror_src_entity_result_id
     from ben_copy_entity_results cpe,
        pqh_table_route trt
     where cpe.information1= c_parent_pk_id
     and   cpe.result_type_cd = 'DISPLAY'
     and   cpe.copy_entity_txn_id = c_copy_entity_txn_id
     and   cpe.table_route_id = trt.table_route_id
     and   trt.from_clause = 'OAB'
     and   trt.where_clause = upper(c_parent_table_name) ;
Line: 16170

   select  rzr.*
   from BEN_PSTL_ZIP_RNG_F rzr
   where  rzr.pstl_zip_rng_id = c_pstl_zip_rng_id
     --and rzr.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_PSTL_ZIP_RNG_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_pstl_zip_rng_id
         -- and information4 = rzr.business_group_id
           and information2 = rzr.effective_start_date
           and information3 = rzr.effective_end_date);
Line: 16195

    select null
    from ben_copy_entity_results cpe
         -- pqh_table_route trt
    where copy_entity_txn_id = p_copy_entity_txn_id
    -- and trt.table_route_id = cpe.table_route_id
    and cpe.table_alias = c_table_alias
    and information1 = c_pk_id;
Line: 16333

     select copy_entity_result_id mirror_src_entity_result_id
     from ben_copy_entity_results cpe,
        pqh_table_route trt
     where cpe.information1= c_parent_pk_id
     and   cpe.result_type_cd = 'DISPLAY'
     and   cpe.copy_entity_txn_id = c_copy_entity_txn_id
     and   cpe.table_route_id = trt.table_route_id
     and   trt.from_clause = 'OAB'
     and   trt.where_clause = upper(c_parent_table_name) ;
Line: 16363

   select  bnb.*
   from BEN_BNFTS_BAL_F bnb
   where  bnb.bnfts_bal_id = c_bnfts_bal_id
     --and bnb.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_BNFTS_BAL_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_bnfts_bal_id
         -- and information4 = bnb.business_group_id
           and information2 = bnb.effective_start_date
           and information3 = bnb.effective_end_date);
Line: 16388

      select null
      from ben_copy_entity_results cpe
         -- pqh_table_route trt
      where copy_entity_txn_id = p_copy_entity_txn_id
      -- and trt.table_route_id = cpe.table_route_id
      and cpe.table_alias = c_table_alias
      and information1 = c_pk_id;
Line: 16527

     select copy_entity_result_id mirror_src_entity_result_id
     from ben_copy_entity_results cpe,
        pqh_table_route trt
     where cpe.information1= c_parent_pk_id
     and   cpe.result_type_cd = 'DISPLAY'
     and   cpe.copy_entity_txn_id = c_copy_entity_txn_id
     and   cpe.table_route_id = trt.table_route_id
     and   trt.from_clause = 'OAB'
     and   trt.where_clause = upper(c_parent_table_name) ;
Line: 16557

   select  bng.*
   from BEN_BENFTS_GRP bng
   where  bng.benfts_grp_id = c_benfts_grp_id
     --and bng.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_BENFTS_GRP'
         and cpe.table_alias = c_table_alias
         and information1 = c_benfts_grp_id
         -- and information4 = bng.business_group_id
        );
Line: 16581

      select null
      from ben_copy_entity_results cpe
           -- pqh_table_route trt
      where copy_entity_txn_id = p_copy_entity_txn_id
      -- and trt.table_route_id = cpe.table_route_id
      and cpe.table_alias = c_table_alias
      and information1 = c_pk_id;
Line: 16709

     select copy_entity_result_id mirror_src_entity_result_id
     from ben_copy_entity_results cpe,
        pqh_table_route trt
     where cpe.information1= c_parent_pk_id
     and   cpe.result_type_cd = 'DISPLAY'
     and   cpe.copy_entity_txn_id = c_copy_entity_txn_id
     and   cpe.table_route_id = trt.table_route_id
     and   trt.from_clause = 'OAB'
     and   trt.where_clause = upper(c_parent_table_name) ;
Line: 16739

   select  DISTINCT acrs_ptip_cvg_id
   from BEN_ACRS_PTIP_CVG_F
   where  PGM_ID = c_PGM_ID;
Line: 16745

   select  apc.*
   from BEN_ACRS_PTIP_CVG_F apc
   where  apc.acrs_ptip_cvg_id = c_acrs_ptip_cvg_id
     --and apc.business_group_id = p_business_group_id
     and not exists (
         select /* */ null
         from ben_copy_entity_results cpe
              -- pqh_table_route trt
         where copy_entity_txn_id = p_copy_entity_txn_id
         -- and trt.table_route_id = cpe.table_route_id
         and ( -- c_mirror_src_entity_result_id is null or
               mirror_src_entity_result_id = c_mirror_src_entity_result_id )
         -- and trt.where_clause = 'BEN_ACRS_PTIP_CVG_F'
         and cpe.table_alias = c_table_alias
         and information1 = c_acrs_ptip_cvg_id
         -- and information4 = apc.business_group_id
        );