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. Report of Monograph Orders with Only One Item and One Invoice Line

    Report of Monograph Orders with Only One Item and One Invoice Line

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

    Desired Outcome Goal:
    A report of monograph orders that have only one item and one invoice line.

    Procedure:
    Use the following SQL:

    > s+ xxx50
    SQL> select /*+ DYNAMIC_SAMPLING(2) ALL_ROWS */ z68_order_number, z68_rec_key from z68, z30, z601 where Z68_ORDER_TYPE = 'M' and rtrim (z68_order_number) = rtrim (Z30_ORDER_NUMBER)
    and substr (z30_rec_key,1,9) not in (select substr (z30_rec_key,1,9) from z30 group by substr (z30_rec_key,1,9) having count(*) > 1 )
    and substr (Z601_REC_KEY_3,1,9) = substr (z30_rec_key,1,9) and z601_type = 'INV' and substr (Z601_REC_KEY_3,1,9) not in (select substr (z601_rec_key_3,1,9) from z601 where z601_type = 'INV' group by substr (z601_rec_key_3,1,9) having count(*) > 1 )
    order by z68_order_number asc;

    Category: Acquisitions

    Subject: Orders


    • Article last edited: 2/12/2014
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Report of items which have never been checked out (for weeding)
      • Report of New and Updated Catalog Records - by Cataloger (com-03) is empty
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 21
      2. Acquisitions
      3. contype:kba
      4. orders
      5. Prod:Aleph
      6. 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