Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transform number to string in dollar format
Message
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Transform number to string in dollar format
Divers
Thread ID:
00961098
Message ID:
00961098
Vues:
42
I'm having trouble finding the syntax to return a dollar-formatted string (commas, dollar sign) from an integer value.

What I have now is:
SELECT STR(FromValue) + ' - ' + STR(ToValue) AS DisplayValue, STR(AssetsCode,2,0) AS cValue...

which returns a 'displayvalue' of "1000 - 25000"

But I want it to return "$1,000 - $25,000"

TIA
Kogo Michael Hogan

"Pinky, are you pondering what I'm pondering?"
I think so Brain, but "Snowball for Windows"?

Ideate Web Site
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform