DBA Data[Home] [Help]

APPS.AME_APU_SHD SQL Statements

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

Line: 48

    select
     approver_type_id
    ,action_type_id
    ,start_date
    ,end_date
    ,object_version_number
    from        ame_approver_type_usages
    where       approver_type_id = p_approver_type_id
 and    action_type_id = p_action_type_id
    and         p_effective_date
    between     start_date and nvl(end_date - ame_util.oneSecond, p_effective_date);
Line: 146

  update ame_approver_type_usages t
     set t.end_date              = p_new_end_date
        ,t.last_updated_by       = l_current_user_id
        ,t.last_update_date      = p_new_end_date
        ,t.last_update_login     = l_current_user_id
        ,t.object_version_number = l_object_version_number
   where t.approver_type_id = p_approver_type_id
 and    t.action_type_id = p_action_type_id
     and p_effective_date between t.start_date
          and nvl(t.end_date - ame_util.oneSecond, sysdate);
Line: 185

    select
     approver_type_id
    ,action_type_id
    ,start_date
    ,end_date
    ,object_version_number
    from    ame_approver_type_usages
    where   approver_type_id = p_approver_type_id
 and    action_type_id = p_action_type_id
    and     p_effective_date
    between start_date and nvl(end_date - ame_util.oneSecond, sysdate)
    for update nowait;
Line: 227

  If (p_datetrack_mode <> hr_api.g_insert) then
    --
    -- We must select and lock the current row.
    --
    Open  C_Sel1;
Line: 264

  if (p_datetrack_mode = hr_api.g_update) then
    p_validation_start_date := p_effective_date;
Line: 267

  elsif (p_datetrack_mode = hr_api.g_delete) then
    p_validation_start_date := p_effective_date;
Line: 332

  select nvl(max(t.object_version_number),0) + 1
    into l_ovn
    from ame_approver_type_usages t
   where t.approver_type_id = p_approver_type_id
 and    t.action_type_id = p_action_type_id;