Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Money Expand / Collapse
Author
Message
Posted Sunday, April 4, 2010 2:10 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, June 8, 2016 6:46 AM
Points: 126, Visits: 167

Hi

Can someone explain what is money datatype..

select CONVERT(money,'1,0,0,0,0,0,0.0,0,0,1')


Regards
VMSSanthosh
Post #896468
Posted Sunday, April 4, 2010 2:22 PM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Yesterday @ 8:29 PM
Points: 40,969, Visits: 38,258
Heh... "fuzzy, forgiving input" that disregards just about all currency marks other than the decimal point except when set to the European format where periods represent commas and a comma is the decimal point.

Look at it this way... "It's not a fault, it's a feature."


--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

Helpful Links:
How to post code problems
How to post performance problems
Post #896470
Posted Sunday, April 4, 2010 2:25 PM


SSCrazy Eights

SSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy Eights

Group: General Forum Members
Last Login: Yesterday @ 6:18 PM
Points: 9,932, Visits: 11,342
See:

Using Monetary Data
Money and SmallMoney

Example:
SELECT $123.67





Paul White
SQLPerformance.com
SQLblog.com
@SQL_Kiwi
Post #896471
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse