Skip to main content

Koha SQL: Books Without Barcodes

Find item records missing barcodes for data cleanup. Copy this query into Koha Staff Interface → Reports → Create from SQL.

SQL Query

SELECT i.itemnumber, bib.biblionumber, bib.title, i.homebranch FROM items i JOIN biblio bib ON i.biblionumber = bib.biblionumber WHERE i.barcode IS NULL OR i.barcode = '';

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