in reply to AVG returns COUNT
my ( $avg ) = $dbh->selectrow_array(q{ SELECT avg(ERWWCOMMUNITIES_Memory_Pages_sec) FROM prospects}); [download]