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. In SQL: how to make decimal point appear before last two digits

    In SQL: how to make decimal point appear before last two digits

    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:
    How can we make a sum get the decimal point before the last two digits in an sql

    When we do this:

    usm50@ALEPH201> select z31_sum from z31;
    **** Hit return to continue ****

    Z31_SUM
    --------------
    00000000007500


    How can we set the result to appear like this:
    000000000075.00

    instead of

    00000000007500

    Resolution:
    SQL> select to_char(z31_sum, '9999D99') from usm50.z31;

    The number of 9's indicates the number of maximum number of digits being displayed.


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • In send-request-letter, significant parts of BIB info missing for serials
      • In transit - minute-long hang for first item each day
    • 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