There's probably a shorter way to do that though...my $sth = $dbh->prepare("SELECT avg(...) FROM prospects"); $sth->execute; my ($avg) = $sth->fetchrow_array;
Update: shorter way:
my ($avg) = $dbh->selectrow_array("SELECT avg(...) FROM prospects");
In reply to Re: AVG returns COUNT
by japhy
in thread AVG returns COUNT
by DrAxeman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |