set
linesize 200
linesize 200
col
username for a10
username for a10
col
status for a10
status for a10
col
phase for a10
phase for a10
col
PNAME for a70
PNAME for a70
col
request_id for 99999999999
request_id for 99999999999
col
PNAME for a40
PNAME for a40
select
b.user_name
username,
username,
a.USER_CONCURRENT_PROGRAM_NAME as PNAME,
avg((nvl(ACTUAL_COMPLETION_DATE,sysdate)-a.REQUESTED_START_DATE)*24)
avg_Hrs_running,
avg_Hrs_running,
max((nvl(ACTUAL_COMPLETION_DATE,sysdate)-a.REQUESTED_START_DATE)*24)
Max_Hrs_running,
Max_Hrs_running,
min((nvl(ACTUAL_COMPLETION_DATE,sysdate)-a.REQUESTED_START_DATE)*24)
Min_Hrs_running
Min_Hrs_running
from
apps.fnd_conc_req_summary_v
a,
a,
apps.fnd_user b
where
phase_code
= ‘C’ and status_code = ‘C’ and
= ‘C’ and status_code = ‘C’ and
a.REQUESTED_START_DATE
> sysdate-30 and
> sysdate-30 and
upper(a.USER_CONCURRENT_PROGRAM_NAME)
like upper(‘%&str%’) and
like upper(‘%&str%’) and
a.REQUESTED_BY=b.user_id
group
by b.user_name,a.USER_CONCURRENT_PROGRAM_NAME;
by b.user_name,a.USER_CONCURRENT_PROGRAM_NAME;
Recent Posts