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. Multi-field SQL queries of Z00R

    Multi-field SQL queries of Z00R

    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: 17.01

    Description:
    I'm using z00r. I'm looking for all the serials that have a particular 049.

    Separate queries work well

    select z00r_doc_number from z00r where Z00R_FIELD_CODE = 'FMT' and Z00R_TEXT = 'SE';

    select z00r_doc_number from z00r where Z00R_FIELD_CODE = '049' and z00r_text like '%ILUU%';

    But when I try to combine them into one query, I 'm not getting any hits. I tried

    select z00r_doc_number from z00r where (Z00R_FIELD_CODE = 'FMT' and Z00R_TEXT = 'SE') and (Z00R_FIELD_CODE = '049' and z00r_text like '%ILUU%');

    Resolution:
    In the z00r, each field is a separate record. You would need to do this:

    SQL> select z00r_doc_number from z00r where z00r_doc_number in (select z00r_doc_number from z00r where Z00R_FIELD_CODE = 'FMT' and Z00R_TEXT = 'SE' ) and z00r_doc_number in (select z00r_doc_number from z00r where Z00R_FIELD_CODE = '049' and z00r_text like '%ILUU%' );

    Additional Information

    Z00R, SQL


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Multi-ADM tab18.eng settings: one ADM's tab18.eng is affecting all tab18.engs
      • Multi-process, I/O intensive jobs slow in Aleph 22-up
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 17.01
      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