455 |
my ($bookcount) = $rqbookcount->fetchrow; |
my ($bookcount) = $rqbookcount->fetchrow; |
456 |
$strcalc .= "100*(COUNT(DISTINCT itemnumber))/ $bookcount " ; |
$strcalc .= "100*(COUNT(DISTINCT itemnumber))/ $bookcount " ; |
457 |
} |
} |
458 |
$strcalc .= "FROM statistics,borrowers where (statistics.borrowernumber=borrowers.borrowernumber) "; |
$strcalc .= "FROM statistics,borrowers,issues where (statistics.borrowernumber=borrowers.borrowernumber) and issues.borrowernumber=borrowers.borrowernumber and issues.itemnumber=statistics.itemnumber "; |
459 |
|
|
460 |
@$filters[0]=~ s/\*/%/g if (@$filters[0]); |
@$filters[0]=~ s/\*/%/g if (@$filters[0]); |
461 |
$strcalc .= " AND statistics.datetime > '" . @$filters[0] ."'" if ( @$filters[0] ); |
$strcalc .= " AND statistics.datetime > '" . @$filters[0] ."'" if ( @$filters[0] ); |