Results 1 to 2 of 2

Thread: Currency Format

  1. #1
    Expert Member
    Join Date
    Sep 2007
    Answers
    697

    Currency Format

    SELECT ryotnumber,to_char(sum((netweight*850)),'$ 99,999.99') as grossvalue
    FROM cmscaneweighment
    WHERE seasoncode='200607'
    GROUP BY ryotnumber
    ORDER BY grossvalue desc

    In the above query if I give Rs instead of $ it is showing error message ORA - 01481 Invalid Number Format Model. How to display Rs before the number while diplaying the output?


  2. #2
    Expert Member
    Join Date
    Apr 2007
    Answers
    500

    Re: Currency Format

    Follow this
    alter session set nls_currency=Rs

    SELECT TO_CHAR( SUM(sal), 'L999G999D99') Total FROM EMP

    U have to alter the seesion by setting nls_currency to Rs and run ur query

    Last edited by susarlasireesha; 12-27-2007 at 04:27 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact