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. Joining bib Z13 table with adm Z30 table in SQL

    Joining bib Z13 table with adm Z30 table in SQL

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Additional Information
    • Article Type: General
    • Product: Aleph
    • Product Version: 20

    Desired Outcome Goal:
    To join the bib library Z13 (Short Bibliographic record) table with the adm library Z30 (Item) table in SQL when the bib and adm record keys are not in synch.

    Procedure:
    > s+ xxx50

    SQL-XXX50> SELECT /*+ DYNAMIC_SAMPLING(2) ALL_ROWS */ Z13_TITLE, Z30_BARCODE from EXU01.Z13, Z30, Z103 where Z13_REC_KEY = substr (Z103_REC_KEY_1,6,9) and substr (Z103_REC_KEY_1,1,5) = 'XXX01' and substr (Z103_REC_KEY,6,9) = substr (Z30_REC_KEY,1,9);

    Additional Information

    Note 1: the /*+ DYNAMIC_SAMPLING(2) ALL_ROWS */ is not strictly necessary. It is included for performance reasons.

    Note 2: If the Bib and ADM numbers are still in synch -- which is not at all required or expected by Aleph --, then the following SQL could be used:

    SQL-XXX50> SELECT /*+ DYNAMIC_SAMPLING(2) ALL_ROWS */ Z13_TITLE, Z30_BARCODE from EXU01.Z13, EXU50.Z30 where Z13_REC_KEY = substr (Z30_REC_KEY,1,9); 

    Category: System management


    • Article last edited: 10-Dec-2018
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Jobs/tables in parallel library ... or actual?
      • Journal Title Search URL for Serials Solutions
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 20
      2. contype:kba
      3. Prod:Aleph
      4. System management
      5. 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