Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Voyager

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Voyager
    3. Community Knowledge
    4. Voyager to Alma Migration Query: Patron Groups in Use

    Voyager to Alma Migration Query: Patron Groups in Use

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    No headers
    Created By: Laura Guy (contact)
    Created on: 9/14/2020



    When migrating from Voyager to Alma, you may want to simplify your patron groups. This query may assist you in doing that by identifying patron groups in Voyager that are not in use (or rarely used).

    This main query and its related subquery, which can be run using Voyager's Prepackaged Access Reports, counts the number of patrons assigned to each group, showing whether the barcode and the patron record are active.

    Subquery: This subquery lists that patron_id and patron group code, and determines whether the barcode is active and whether the patron record is unexpired.  Save this under the name “Patron Groups Assigned to Locals Subquery” but don’t run it.

    SELECT PATRON_BARCODE.PATRON_ID, PATRON_BARCODE.PATRON_GROUP_ID,
    IIf([patron_barcode].[barcode_status]='1','Barc Active','Barc Inactive') AS Barc_Status,
    IIf([patron].[expire_date]>Now(),'Pat Rec Active','Pat Rec Expired') AS Patron_Status
    FROM PATRON_BARCODE INNER JOIN PATRON ON PATRON_BARCODE.PATRON_ID = PATRON.PATRON_ID
    WHERE (((PATRON.DB_ID)='0' Or (PATRON.DB_ID) Is Null));


    Main Query: This compares the list of patron groups to the results of the subquery and does the counts.  Save it under any name you wish and run it.

    SELECT PATRON_GROUP.PATRON_GROUP_CODE, PATRON_GROUP.PATRON_GROUP_NAME,
    [Patron Groups Assigned to Locals Subquery].Barc_Status,
    [Patron Groups Assigned to Locals Subquery].Patron_Status,
    Count([Patron Groups Assigned to Locals Subquery].PATRON_GROUP_ID) AS Count
    FROM PATRON_GROUP LEFT JOIN [Patron Groups Assigned to Locals Subquery]
    ON PATRON_GROUP.PATRON_GROUP_ID =
    [Patron Groups Assigned to Locals Subquery].PATRON_GROUP_ID
    GROUP BY PATRON_GROUP.PATRON_GROUP_CODE, PATRON_GROUP.PATRON_GROUP_NAME,
    [Patron Groups Assigned to Locals Subquery].Barc_Status,
    [Patron Groups Assigned to Locals Subquery].Patron_Status
    ORDER BY PATRON_GROUP.PATRON_GROUP_CODE,
    [Patron Groups Assigned to Locals Subquery].Barc_Status,
    [Patron Groups Assigned to Locals Subquery].Patron_Status;

     

    For other queries that may be useful, see my "Surviving Almanado: tips for a successful pre-implementation" presentation's Accompanying Materials.
     
    Posted as is. If you need assistance in running custom SQL queries in Prepackaged Access Reports, consult the Voyager Customer Listserv.

     




    Report
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Voyager to Alma Migration Query: MFHDs Without Item Records
      • Voyager to Alma Migration Query: Reading (Reserve) Lists with no Course Attached
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Community Content Type
      How To
      Product
      Voyager
    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