Count unique titles and physical copies grouped by Koha item type. Copy this query into Koha Staff Interface → Reports → Create from SQL.
SQL Query
SELECT itype, COUNT(DISTINCT biblionumber) AS titles, COUNT(itemnumber) AS copies FROM items WHERE barcode IS NOT NULL GROUP BY itype ORDER BY copies DESC;
Sample Output
| code | titles | copies |
|---|---|---|
| BK / MAIN | 1420 | 2850 |
| REF / MAIN | 310 | 345 |
| JRN / PER | 185 | 620 |
How to Run in Koha
- Log in to the Koha Staff Interface and open Reports.
- Click Create from SQL.
- Paste the SQL above, give it a clear name, and click Save report.
Contact: mahsandu@gmail.com · 01916303060
Comments
Post a Comment