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. How to link z35 records to associated z30, z36, etc., records in SQL

    How to link z35 records to associated z30, z36, etc., records in SQL

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

    Description:
    We have a problem (in SQL) linking z35 records to their associated z30's, z36's, etc. The problem is that the Z35-ITEM-SEQUENCE lacks leading zeroes while the Z30-ITEM-SEQUENCE and Z36-ITEM-SEQUENCE contain these zeros, for example, just "10" rather than "000010".

    Resolution:
    The following SQL can be used to build a key with a sequence number containing the necessary leading zeros:

    Z35_REC_KEY || LPAD (Z35_ITEM_SEQUENCE,6,'0')

    KB 16384-36721 has actual SQL showing this use of LPAD.


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • How to link xxx01.z13 to xxx50.z68
      • How to list patrons with particular patron status.
    • 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. 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