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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number Format problem.

Status
Not open for further replies.

dwight1

IS-IT--Management
Aug 22, 2005
176
US
I have a table that has a field (orgamt) data type as decimal. I have a view based on this table and i can go to the properties of that field and change the data type to standard with decimals zero.

My problem is, in the next step i have a sp with a case statement and i give an alias to the field name. For example,

Sum(CASE WHEN Crosstab = 1 THEN Orgamt ELSE 0 END) AS 'Balance'

Now, here the format of the number comes as 123456.00 but i want it to be 123,456 and with out decimals.

Can any one advise me please on this?

Thank you

Dwight
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top