[Koha] Help with sql statement.

Nicole Engard nengard at gmail.com
Mon Jun 11 22:39:51 NZST 2012


This should work:

SELECT b.code,c.code,COUNT(*)
 FROM borrowers WHERE DATE(dateenrolled)  between <<Date between (yyyy-mm-dd)>>
 AND <<and (yyyy-mm-dd)>> and b.code = <<Pick your branch|branches>>
 GROUP BY c.code


More information about the Koha mailing list