query("SELECT substr(varchar(END_TIME),1,10) as ADATE,ENTITY,ACTIVITY,cast(float(sum(BYTES))/1024/1024/1024 as dec(8,2)) as GB from SUMMARY where ACTIVITY='BACKUP' and END_TIME>CURRENT_TIMESTAMP-(30)DAY and (ACTIVITY in ('ARCHIVE','BACKUP','RESTORE','RETRIEVE')) group by END_TIME,ENTITY,ACTIVITY order by ADATE desc,ENTITY ",null,false,false); echo ''; printf('', 'heading','Date','Node','Type','GB'); $counter = 0; foreach ($thruput as $details) { printf('', $counter++%2 ? 'even' : 'odd', $details['ADATE'],$details['ENTITY'],$details['ACTIVITY'],$details['GB']); } echo '
%s%s%s%s
%s%s%s%s
'; ?>