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 show out-of-sync Bib/ADM record keys

    SQL to show out-of-sync Bib/ADM record keys

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Description
    2. Resolution

     

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

     

    Description

    What SQL will show bib/ADM keys which are out of synch?

    Resolution

    This SQL gives a count of cases where the Bib number does not match the ADM number:

    > s+ xxx50
    cjh50@ALEPH22> select count(*) from z103 where substr (z103_rec_key_1,1,5) = 'XXX01' and  substr (z103_rec_key,6,9) ^= substr (z103_rec_key_1,6,9) order by substr (z103_rec_key,1,14);

     
    The following SQL can be used to list these cases:

    > s+ xxx50
    SQL> select substr (z103_rec_key,1,14), z103_rec_key_1 from z103 where substr (z103_rec_key_1,1,5) = 'XXX01' and  substr (z103_rec_key,6,9) ^= substr (z103_rec_key_1,6,9) order by substr (z103_rec_key,1,14);

     

     


    • Article last edited: 27-Mar-2016
    View article in the Exlibris Knowledge Center
    1. Back to top
      • SQL to retrieve hold requests for specific library (in Alma migration)
      • SQL to update the 852 subfield h
    • 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