Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Aleph

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Aleph
    3. Knowledge Articles
    4. How to find items with more than nnnn loans?

    How to find items with more than nnnn loans?

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    No headers
    • Article Type: General
    • Product: Aleph
    • Product Version: 20, 21, 22, 23
    • Relevant for Installation Type: Dedicated-Direct; Direct; Local;


    How can we find items in our collection which have had more than 1000 (2000, etc.) loans?

    Resolution:
    As noted in the article Does Aleph have a limit on the number of loans that show on the item record? , the z30_no_loans has this count, but it is limited to 999.  (Note:  the article describes a change in version 23.)

    If you have items with more than 999 loans, then you need to use the following SQL:

    SQL> select z35_rec_key || '-' || z35_item_sequence, count (*) from z35 where z35_event_type like '5%' group by z35_rec_key || '-' || z35_item_sequence having count(*) > nnnn;

    <where "nnnn" is the number of loans you are checking for>.

    Note: If you have deleted z35 records older than a certain year, then this count will only include loans for the years since then.

    Category: Circulation


    • Article last edited: 29-Aug-2016
    View article in the Exlibris Knowledge Center
    1. Back to top
      • How to Find HOL Records Linked to Specific BIB Records?
      • How to find maximum number of GUI users
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 20
      2. Circulation
      3. contype:kba
      4. Dedicated-Direct
      5. Direct
      6. Local
      7. Prod:Aleph
      8. Type:General
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved