/TrafficCount/trunk/sql/report.sql |
---|
0,0 → 1,11 |
-- |
-- total traffic report for mercury |
-- |
select d1.source, d2.source, d1.day, |
round((d1.endvalue-d1.beginvalue+d2.endvalue-d2.beginvalue) / 1024 / 1024) as count |
from tdays d1 |
left join tdays d2 on (d2.day = d1.day and d2.source='fw_out') |
where d1.day >= '1 Jan 2004' |
and d1.source = 'fw_in' |
order by d1.source, d1.day; |