Solved

Convert numbers to comma separated numbers in oracle query

Posted on 2012-03-13
2
549 Views
Last Modified: 2012-06-21
I have amount . I need that amount to be comma separated numbers.
For example 10000 = 10,000. How to do that query in oracle.

See my query here:
select sum(violation_Amount) as TotAmount from tab1 where Month_Name = 'JAN' and year_name = '2012'

Just update this query please.

Regards
Shaji
0
Comment
Question by:mshaji
2 Comments
 
LVL 11

Accepted Solution

by:
rowansmith earned 500 total points
ID: 37713567
select to_char(sum(violation_Amount), '999,999,999') as TotAmount from tab1 where Month_Name = 'JAN' and year_name = '2012'
0
 

Author Closing Comment

by:mshaji
ID: 37713580
Done
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PL SQL Search Across Columns 4 35
Use of Exception to end a Loop 3 31
create a nested synonym 4 25
pl/sql - query very slow 26 60
Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question