Skip to main content
ExLibris

Knowledge Assistant

BETA
 
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 get circulation statistics by Collection?

How to get circulation statistics by Collection?

  1. Last updated
  2. Save as PDF
  3. Share
    1. Share
    2. Tweet
    3. Share
No headers

 

  • Product: Aleph
  • Product Version: 20, 21, 22, 23
  • Relevant for Installation Type: Dedicated-Direct, Direct, Local, Total Care

 

Desired Outcome Goal:
p_cir_30 and p_cir_31 give statistics by sublibrary only. We need statistics by Collection.

 

Procedure:
The following SQL can be used to get counts of loans (excluding in-house loans) for all Collections for a particular month: 
> s+ abc50
SQL> select z30_collection, count(*) from z30, z35 where (z35_event_type like '5%' ) and z35_event_date like 'yyyymm%' and z30_rec_key = z35_rec_key || lpad (Z35_ITEM_SEQUENCE,6,'0') group by z30_collection order by z30_collection;
where "yyyymm" is the year/month. 

 

The following SQL can be used to get counts of *in-house* loans for all collections for a particular month:
SQL> select z30_collection, count(*) from z30, z35 where (z35_event_type = '80' or z35_event_type = '82' ) and z35_event_date like 'yyyymm%' and z30_rec_key = z35_rec_key || lpad (Z35_ITEM_SEQUENCE,6,'0') group by z30_collection order by z30_collection;

 

The following example gives you the counts of in-house loans for January, 2012:
select z30_collection, count(*) from z30, z35 where (z35_event_type = '80' or z35_event_type = '82' ) and z35_event_date like '201201%' and z30_rec_key = z35_rec_key || lpad (Z35_ITEM_SEQUENCE,6,'0') group by z30_collection order by z30_collection;

 

Additional Information
The p_priv_21 service, available on EL Commons, developed by Al Rykhus at MN PALS, produces Circulation statistics by Collection and Call number range.

 

 


  • Article last edited: 12-Mar-2016
View article in the Exlibris Knowledge Center
  1. Back to top
    • How to get a list of titles loaned by a patron in the past six months?
    • How to get list of items with z30_temp_location='Y'
  • Was this article helpful?

Recommended articles

  1. Article type
    How-To
    Language
    English
    Product
    Aleph
  2. Tags
    This page has no tags.
  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