neronikita
Technical User
I am using Actuate 8. Does anyone know how to show just the TOP N records of a report, such as the Top 10? I figure it has to do with RowNumber, but I haven't figured it out yet.
Thanks,
Di
If needed, here is my SQL:
select
wct_cat_lvl4_nme,
count(wct_cat_lvl4_nme) as Lvl4Cnt, aa.totals,
cast(count(wct_cat_lvl4_nme) as decimal)/aa.totals as pct
from incidents,
(select count(*) as totals
from incidents
where open_time >= :sdate and open_time < :edate and wct_orig_grp_nme = 'ess%) aa
where open_time >= :sdate and open_time < :edate and wct_orig_grp_nme = 'ess%
Group by wct_cat_lvl4_nme, aa.totals
Order by count(wct_cat_lvl4_nme) desc
Thanks,
Di
If needed, here is my SQL:
select
wct_cat_lvl4_nme,
count(wct_cat_lvl4_nme) as Lvl4Cnt, aa.totals,
cast(count(wct_cat_lvl4_nme) as decimal)/aa.totals as pct
from incidents,
(select count(*) as totals
from incidents
where open_time >= :sdate and open_time < :edate and wct_orig_grp_nme = 'ess%) aa
where open_time >= :sdate and open_time < :edate and wct_orig_grp_nme = 'ess%
Group by wct_cat_lvl4_nme, aa.totals
Order by count(wct_cat_lvl4_nme) desc