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. SQL-question regarding "number of active users within 2014 sorted by gender"

    SQL-question regarding "number of active users within 2014 sorted by gender"

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    No headers

     

    • Product: Aleph
    • Product Version: 20, 21, 22, 23
    • Relevant for Installation Type: Dedicated-Direct, Direct, Local, Total Care

     


    Question    
    SQL statement needed for "number of active users within 2014 sorted by gender".

     

    Answer    
    The following request started in the USR library should bring the correct result (please replace usm50 with your adm library name):

    usr00@ALEPH221> select Z303_GENDER,count(*) from z303
    2 where (select count(*) from usm50.z35
    3 where z35_id = Z303_rec_key and
    4 Z35_EVENT_DATE >= 20140000 and
    5 Z35_EVENT_DATE <= 20149999 )
    6 > 0
    7 group by Z303_GENDER;


     

     

     


    • Article last edited: 26-Jun-2016
    View article in the Exlibris Knowledge Center
    1. Back to top
      • SQL z308 select: "Invalid or incomplete character beginning 0xDB returned"
      • SQL*Loader-510: Physical record in data file is longer than the maximum
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      This page has no tags.
    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