select DestHostIP, max(bytesent)from (SELECT DestHostIP,SUM(BytesSent) bytesent FROM WebProxyLog GROUP BY DestHostIP);