Skip to main content

Koha SQL: Duplicate Barcodes Check

Detect duplicate item barcodes before migration or audit. Copy this query into Koha Staff Interface → Reports → Create from SQL.

SQL Query

SELECT barcode, COUNT(*) AS cnt FROM items WHERE barcode IS NOT NULL GROUP BY barcode HAVING cnt > 1;

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