Reports2017-11-18T12:27:27+00:00

Blitz Report License Users

Description
Categories: Application, Enginatics
Active Blitz Report users (within the past 60 days) and their most frequently executed reports.

select
xxen_util.user_name(xrlu.user_id) user_name,
xxen_util.client_time(xrlu.last_run_date) last_run_date,
y.report_executions,
y.distinct_reports,
xrv.report_name most_popular,
y.most_popular_count
from
xxen_report_license_users xrlu,
fnd_user fu,
(
select distinct
x.created_by,
x.report_executions,
x.distinct_reports,
max(x.report_id) keep (dense_rank last order by x.count) over (partition by x.created_by) most_popular,
max(x.count) keep (dense_rank last order by x.count) over (partition by x.created_by) most_popular_count
from
(
select distinct
xrr.created_by,
xrr.report_id,
count(*) over (partition by xrr.created_by) report_executions,
count(distinct xrr.report_id) over (partition by xrr.created_by) distinct_reports,
count(*) over (partition by xrr.created_by, xrr.report_id) count
from
xxen_report_runs xrr
where
nvl(xrr.type,'x')<>'S' and
xrr.creation_date>sysdate-60
) x
) y,
xxen_reports_v xrv
where
xrlu.last_run_date>sysdate-60 and
xrlu.user_id=fu.user_id and
nvl(fu.end_date,sysdate)>=sysdate and
xrlu.user_id=y.created_by(+) and
y.most_popular=xrv.report_id(+)
order by
xrlu.last_run_date desc


By continuing to use the site, you agree to the use of cookies. Accept