DBA Data[Home] [Help]

APPS.CSF_REQUIRED_SKILLS_PKG SQL Statements

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

Line: 10

    Select 1
    From jtf_task_templates_b
    Where task_template_id = p_task_tpl_id
    and task_group_id = p_task_tpl_grp_id;
Line: 31

    Select 1
    From jtf_tasks_b
    Where task_id = p_task_id;
Line: 54

    select 1
    from csf_required_skills_b
    where skill_id       = p_skill_id
    and   skill_type_id  = p_skill_type_id
    and   has_skill_type = 'TASK'
    and   sysdate        >= trunc(start_date_active)
    and   (sysdate       <= trunc(end_date_active)+1 or end_date_active is null)
    and   has_skill_id   = p_task_id;
Line: 80

      select 'SELECT '||name_number_column||', '||data_column||
             ' FROM '||from_clause||
             ' WHERE '||where_clause||' AND '||key_column||' = :b_skill_id'
      from csf_skill_types_b
      where skill_type_id = p_skill_type_id;
Line: 121

    Select 1
    From csf_skill_levels_b
    Where skill_level_id = p_skill_level_id
    and (sysdate <= trunc(end_date_active)+1
         or end_date_active is null);
Line: 174

  /*  Check if  a required skill to be inserted does exist for a
     particular task (has_skill_id with has_skill_type = TASKS). If it
     does not exist then proceed to insert the record. Otherwise, DO NOT
     INSERT!!!!!!
  */
  if not required_skill_exists ( p_task_id
                               , p_skill_id
                               , p_skill_type_id)
  then

   /* Checks if task exist in JTF_TASK_B table. */
   If not task_exists (p_task_id) then
     X_return_status :=  fnd_api.g_ret_sts_error;
Line: 212

   /* When all checks are ok, insert record
      into CSF_REQUIRED_SKILLS table. */

    select csf_required_skills_b_s1.nextval
    into l_req_skill_id
    from dual;
Line: 219

    insert into csf_required_skills_b
    ( required_skill_id
    , skill_type_id
    , skill_id
    , has_skill_type
    , has_skill_id
    , skill_level_id
    , skill_required_flag
    , level_required_flag
    , disabled_flag
    , start_date_active
    , end_date_active
    , object_version_number
    , created_by
    , creation_date
    , last_updated_by
    , last_update_date
    , last_update_login
    , attribute1
    , attribute2
    , attribute3
    , attribute4
    , attribute5
    , attribute6
    , attribute7
    , attribute8
    , attribute9
    , attribute10
    , attribute11
    , attribute12
    , attribute13
    , attribute14
    , attribute15
    , attribute_category)
    values
    ( l_req_skill_id
    , p_skill_type_id
    , p_skill_id
    , 'TASK'
    , p_task_id
    , p_skill_level_id
    , null
    , null
    , p_disabled_flag
    , sysdate
    , null
    , 1
    , fnd_global.user_id
    , sysdate
    , fnd_global.user_id
    , sysdate
    , fnd_global.login_id
    , null
    , null
    , null
    , null
    , null
    , null
    , null
    , null
    , null
    , null
    , null
    , null
    , null
    , null
    , null
    , null);
Line: 304

     X_msg_data      := 'Combination of Skill id ('||p_skill_id||') and Skill type id ('||p_skill_type_id||') to be inserted does exist for Task ('||to_char(p_task_id)|| ') in  CSF_REQUIRED_SKILLS_B table';
Line: 334

     select mtl.inventory_item_id
     from jtf_tasks_b          tb
     ,    cs_incidents_all_b   sr
     ,    mtl_system_items_kfv mtl
     where mtl.organization_id = fnd_profile.value('CSF_INVENTORY_ORG')
     and sysdate between nvl(mtl.start_date_active,sysdate) and nvl(mtl.end_date_active,sysdate)
     and mtl.inventory_item_id = sr.inventory_item_id
     and sr.incident_id        = tb.source_object_id
     and tb.task_id            = l_task_id;
Line: 346

     SELECT c.category_id
      FROM mtl_category_set_valid_cats ic,
            mtl_categories_kfv c,
            mtl_category_sets_vl cs,
            mtl_categories_tl t,
            cs_incidents_all_b   sr,
            jtf_tasks_b tb
      WHERE ic.category_id = c.category_id
      AND t.category_id (+) = c.category_id
      AND t.language (+) = userenv('LANG')
      AND ic.category_set_id = cs.category_set_id
      AND ic.category_set_id =  fnd_profile.value('CS_SR_DEFAULT_CATEGORY_SET')
      AND Sysdate <= NVL(c.disable_date, Sysdate)
      AND c.category_id = sr.category_id
      AND sr.incident_id = tb.source_object_id
      and tb.task_id = l_task_id;
Line: 458

    Select skill_type_id
    ,      skill_id
    ,      skill_level_id
    from csf_required_skills_b
    where has_skill_type = 'TASK TEMPLATE'
    and   has_skill_id   = l_tpl_id;
Line: 472

      call create_task_req_skill procedure to insert the
      record. */
   l_task_id    := jtf_tasks_pub.p_task_user_hooks.task_id;
Line: 520

      select a.parent_task_id
      from jtf_tasks_b a, jtf_task_statuses_b b
      where a.task_id = p_task_id
      and a.task_status_id = b.task_status_id
      and nvl(task_split_flag, 'N') = 'D'
      and nvl(b.cancelled_flag, 'N') <> 'Y';
Line: 529

      select skill_type_id, skill_id, skill_level_id, disabled_flag
      from csf_required_skills_v
      where has_skill_id = p_task_id
      and skill_type_id <>2;