Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting decimal out of query

Status
Not open for further replies.

ecannizzo

Programmer
Sep 19, 2000
213
US
I have a query that takes a number(5,2) out of a database table. Problem is, if there is no decimal part it does not put the .00 at the end of it. Is there anyway to do this in the query.
For instance,

select amount from tablename

This give me 50. I want to format it to bring back 50.00.

Any ideas?
Thanks!
 
I figured it out.

to_char(amount , '999.00')
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top