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 find Course doc records which have no items linked to them

    How to find Course doc records which have no items linked to them

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Description
    2. Resolution
    • Article Type: Topic
    • Product: Aleph
    • Product Version: 20, 21, 22, 23

    Description

    How can we locate yyy30 Course doc records which don't have any yyy50 item records linked to them?

    Resolution

     

    Course doc records can be linked to items either directly, via a type ADM z103 ("professors' copies"), or indirectly, via an xxx01 bib record which is linked to items.
    This is discussed in the article "Bib, item, and course record connections". 

    The following SQL can be used to find cases where a non-deleted yyy30 course doc record is not linked to any yyy50 item, either directly or indirectly:

    >   s+ yyy30
    SQL> select z00_doc_number from z00 minus select substr (Z103_REC_KEY_1,6,9) from z103 where Z103_LKR_LIBRARY = 'YYY50' minus select z13_rec_key from z13 where Z13_TITLE is null; 

      (Note:  the three alphabetic characters in the YYY50 library code must be *uppercase* in doing this SQL.)

    (Note that the yyy30 course doc record *could* be linked to xxx50 and zzz50 items if the xxx01 bib record is linked to those items. But the preceding SQL intentionally excludes those cases.) 

    The following SQL will include the deleted Course doc records (stub records containing a "DEL Y") which the preceding SQL excludes:

    SQL>  select z00_doc_number from z00 minus select substr (Z103_REC_KEY_1,6,9) from z103 where Z103_LKR_LIBRARY = 'YYY50'; 

    The article " SQL to locate BIB/HOL recs without items; BIBs without ADM; etc. *MASTER RECORD* " contains similar, related SQL queries.

     


    Article last edited: 14-Mar-2017

    View article in the Exlibris Knowledge Center
    1. Back to top
      • How to find Bib/ADM records with more than nnn items
      • How to Find Diacritic for Entry in GUI Cataloging
    • Was this article helpful?

    Recommended articles

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