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. SQL to get patron IDs of borrowers with blank borrower status

    SQL to get patron IDs of borrowers with blank borrower status

    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

     

    Description:

    When I issue the following SQL command in the XXX50 database to get a breakdown of the number of borrowers in each of our borrower statuses, 12 of the borrowers seem to not have a borrower status assigned to them:

    SQL> select Z305_BOR_STATUS, count(*) from Z305 group by Z305_BOR_STATUS;

    Is there an SQL command I can use to get the patron IDs of borrowers who currently do not have a borrower status assigned to them?

     

    Resolution:
    SQL> select z305_rec_key from z305 where Z305_BOR_STATUS is null or Z305_BOR_STATUS like ' %';

     

     


    • Article last edited: 12-Mar-2016
    View article in the Exlibris Knowledge Center
    1. Back to top
      • SQL to get list of patrons with patron type is "RH", with barcode, address, etc.
      • SQL to get patrons with most loans
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      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