Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Total at the end of a report
Can anyone tell me why I don't get a total at the end of this report?
set verify off
set pagesize 55
set linesize 132
spool highwater2.txt
break on server on instance_name on report
compute sum of username on report
select server Server, instance_name, max(username) Max_Users
from (select distinct sample_date, server, instance_name, count(*) username from km_highwater group by server, instance_name, sample_date)group by server, instance_name;