DBA Data[Home] [Help]

APPS.BEN_CPY_BUS SQL Statements

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

Line: 117

    select null
    from   ben_yr_perd yrp
    where  yrp.yr_perd_id = p_yr_perd_id
    and    yrp.business_group_id = p_business_group_id
    and    exists (select null
                   from   ben_popl_yr_perd a,
                          ben_yr_perd b
                   where  a.popl_yr_perd_id <> nvl(p_popl_yr_perd_id,-1)
                   and    a.pl_id = p_pl_id
                   and    a.business_group_id = p_business_group_id
                   and    a.yr_perd_id = b.yr_perd_id
                   and    (yrp.start_date
                           between b.start_date
                           and     b.end_date
                           or
                           yrp.end_date
                           between b.start_date
                           and     b.end_date));
Line: 137

    select null
    from   ben_yr_perd yrp
    where  yrp.yr_perd_id = p_yr_perd_id
    and    yrp.business_group_id = p_business_group_id
    and    exists (select null
                   from   ben_popl_yr_perd a,
                          ben_yr_perd b
                   where  a.popl_yr_perd_id <> nvl(p_popl_yr_perd_id,-1)
                   and    a.pgm_id = p_pgm_id
                   and    a.business_group_id = p_business_group_id
                   and    a.yr_perd_id = b.yr_perd_id
                   and    (yrp.start_date
                           between b.start_date
                           and     b.end_date
                           or
                           yrp.end_date
                           between b.start_date
                           and     b.end_date));
Line: 157

    select null
    from   ben_popl_yr_perd cpy
    where  (cpy.pgm_id = nvl(p_pgm_id,-1) or
            cpy.pl_id  = nvl(p_pl_id,-1))
    and    cpy.yr_perd_id = p_yr_perd_id
    and    cpy.popl_yr_perd_id <> p_popl_yr_perd_id
    and    cpy.business_group_id+0 = p_business_group_id;
Line: 272

    select null
    from   ben_pl_f a
    where  a.pl_id = p_pl_id
    and    p_effective_date
           between a.effective_start_date
           and     a.effective_end_date;
Line: 352

    select null
    from   ben_pgm_f a
    where  a.pgm_id = p_pgm_id
    and    p_effective_date
           between a.effective_start_date
           and     a.effective_end_date;
Line: 432

    select null
    from   ben_yr_perd a
    where  a.yr_perd_id = p_yr_perd_id;
Line: 571

    select start_date, end_date
    from   ben_yr_perd a
    where  a.yr_perd_id = p_yr_perd_id;
Line: 696

    select start_date, end_date
    from   ben_yr_perd a
    where  a.yr_perd_id = p_yr_perd_id;
Line: 701

    select null
    from ben_prtt_reimbmt_rqst_f prc
    where prc.EXP_INCURD_DT > p_py_clms_thru_dt
    and   prc.pl_id = p_pl_id
    and   prc.popl_yr_perd_id_1 = p_yr_perd_id
    and   prc.prtt_reimbmt_rqst_stat_cd in ('APPRVD','PDINFL','PRTLYPD');
Line: 846

cursor c1 is select null
             from   ben_popl_yr_perd
             Where  popl_yr_perd_id <> nvl(p_popl_yr_perd_id,-1)
             /* bug 2923047 -- add pgm_id also */
             and
                 (pl_id = p_pl_id
                  or
                  pgm_id = p_pgm_id
                  )
             and    ordr_num = p_ordr_num
             and    business_group_id = p_business_group_id;
Line: 875

Procedure insert_validate(p_rec in ben_cpy_shd.g_rec_type) is
--
  l_proc  varchar2(72) := g_package||'insert_validate';
Line: 933

End insert_validate;
Line: 938

Procedure update_validate(p_rec in ben_cpy_shd.g_rec_type) is
--
  l_proc  varchar2(72) := g_package||'update_validate';
Line: 996

End update_validate;
Line: 1001

Procedure delete_validate(p_rec in ben_cpy_shd.g_rec_type) is
--
  l_proc  varchar2(72) := g_package||'delete_validate';
Line: 1011

End delete_validate;
Line: 1023

    select a.legislation_code
    from   per_business_groups a,
           ben_popl_yr_perd b
    where b.popl_yr_perd_id      = p_popl_yr_perd_id
    and   a.business_group_id = b.business_group_id;