Skip to main content

Koha SQL: Books Added Between Two Dates

Track newly accessioned items within a date range. Copy this query into Koha Staff Interface → Reports → Create from SQL.

SQL Query

SELECT i.dateaccessioned, i.barcode, bib.title, bib.author, i.price FROM items i JOIN biblio bib ON i.biblionumber = bib.biblionumber WHERE i.dateaccessioned BETWEEN <> AND <> ORDER BY i.dateaccessioned DESC;

Sample Output

barcode_or_idtitlestatus_or_detail
BC-000101Sample Library Title 1Active
BC-000102Sample Library Title 2Active
BC-000103Sample Library Title 3Needs Review

How to Run in Koha

  1. Log in to the Koha Staff Interface and open Reports.
  2. Click Create from SQL.
  3. Paste the SQL above, give it a clear name, and click Save report.

Contact: mahsandu@gmail.com · 01916303060

Comments

Popular posts from this blog