DBA Data[Home] [Help]

APPS.OTA_CTU_BUS SQL Statements

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

Line: 28

    select pbg.security_group_id,
           pbg.legislation_code
      from per_business_groups_perf pbg
         , ota_category_usages ctu
     where ctu.category_usage_id = p_category_usage_id
       and pbg.business_group_id = ctu.business_group_id;
Line: 99

    select pbg.legislation_code
      from per_business_groups_perf pbg
         , ota_category_usages ctu
     where ctu.category_usage_id = p_category_usage_id
       and pbg.business_group_id = ctu.business_group_id;
Line: 314

    select
      ctu.start_date_active,
      nvl(ctu.end_date_active, hr_api.g_eot)
    from
      ota_category_usages ctu
    where
      ctu.category_usage_id = p_parent_cat_usage_id;
Line: 385

     select
       ccat.start_date_active,
       ccat.end_date_active
     from
       ota_category_usages ccat
     where
       ccat.parent_cat_usage_id =  p_category_usage_id;
Line: 467

     select
       tav.start_date,
       tav.end_date
     from
       ota_activity_versions tav,
       ota_act_cat_inclusions aci
     where
       tav.activity_version_id = aci.activity_version_id
       and aci.primary_flag= 'Y'
       and aci.category_usage_id =  p_category_usage_id;
Line: 560

     select
       lps.start_date_active,
       lps.end_date_active
     from
       ota_learning_paths lps,
       ota_lp_cat_inclusions lci
     where
       lps.learning_path_id = lci.learning_path_id
       and lci.primary_flag= 'Y'
       and lci.category_usage_id =  p_category_usage_id;
Line: 650

    select
      distinct 'found'
    From
      ota_category_usages ctu
    where
      ctu.business_group_id = p_business_group_id
      and ctu.parent_cat_usage_id is null
      and ctu.type = 'C';
Line: 708

    select start_date,
           end_date
    from
      ota_offerings off
    where
      off.delivery_mode_id = p_category_usage_id;
Line: 797

    select 'Y'
     From ota_offerings  off
    where off.delivery_mode_id = p_category_usage_id;
Line: 864

Procedure chk_non_updateable_args
  (p_effective_date               in date
  ,p_rec in ota_ctu_shd.g_rec_type
  ) IS
--
  l_proc     varchar2(72) := g_package || 'chk_non_updateable_args';
Line: 890

End chk_non_updateable_args;
Line: 908

    select
        distinct ctu.type
    from
        ota_category_usages_vl ctu
    where
        ctu.category = p_category
        and (p_category_usage_id is null or ctu.category_usage_id <> p_category_usage_id)
        and (ctu.parent_cat_usage_id = p_parent_cat_usage_id or ctu.type <> 'C')
        and ctu.business_group_id = p_business_group_id
        and ctu.type =   p_type;
Line: 960

Procedure insert_validate
  (p_effective_date               in date
  ,p_rec                          in ota_ctu_shd.g_rec_type
  ) is
--
  l_proc  varchar2(72) := g_package||'insert_validate';
Line: 1038

End insert_validate;
Line: 1043

Procedure update_validate
  (p_effective_date               in date
  ,p_rec                          in ota_ctu_shd.g_rec_type
  ) is
--
  l_proc  varchar2(72) := g_package||'update_validate';
Line: 1142

  chk_non_updateable_args
    (p_effective_date              => p_effective_date
      ,p_rec              => p_rec
    );
Line: 1155

End update_validate;
Line: 1160

Procedure delete_validate
  (p_rec                          in ota_ctu_shd.g_rec_type
  ) is
--
  CURSOR cur_category_type is
    select
      ctu.type
    From
      ota_category_usages  ctu
    where
      ctu.category_usage_id = p_rec.category_usage_id;
Line: 1172

  l_proc  varchar2(72) := g_package||'delete_validate';
Line: 1213

End delete_validate;
Line: 1230

  select
      '1' Cat_exists
    From
      ota_category_usages  ctu1
    where
      ctu1.category_usage_id = p_category_usage_id
      and ctu1.category_usage_id in
      	(select
      		ctu2.parent_cat_usage_id
      	 From
      	 	ota_category_usages ctu2
           connect by ctu2.category_usage_id = prior ctu2.parent_cat_usage_id
           start with ctu2.category_usage_id = p_parent_cat_usage_id
         );
Line: 1298

    select
      distinct 'found'
    From
      ota_category_usages  ctu
    where
      parent_cat_usage_id = p_category_usage_id;
Line: 1355

    select
      distinct 'found'
    From
      ota_act_cat_inclusions  cti
    where
      cti.category_usage_id = p_category_usage_id;
Line: 1409

    select 'Y'
     From ota_offerings  off
    where off.delivery_mode_id = p_category_usage_id;
Line: 1571

    select
      distinct 'found'
    From
      ota_lp_cat_inclusions  lci
    where
      lci.category_usage_id = p_category_usage_id;
Line: 1625

    select
      distinct tad.name
    From
      ota_training_plan_members tpm,
      ota_activity_definitions_vl tad,
      ota_category_usages ctu
    where
      ctu.category_usage_id = tad.category_usage_id
      and tad.activity_id = tpm.activity_definition_id
      and ctu.category_usage_id = p_category_usage_id;