Solved

use 1000 seperator for my price column

Posted on 2004-09-25
4
212 Views
Last Modified: 2008-01-09
hi
i have a question about one of my column in table
i have a float column --> price
i wanna use 1000 seperator for my price column
how can i do that
tanxfull
Mahsa
0
Comment
Question by:Mahsa60
4 Comments
 
LVL 6

Expert Comment

by:curtis591
ID: 12150355
Your front end application would have to format it.
0
 
LVL 49

Accepted Solution

by:
Ryan Chong earned 50 total points
ID: 12150431
Try like:

Select CONVERT(varchar, CAST(myprice AS money), 1) from mytable
0
 
LVL 15

Expert Comment

by:jdlambert1
ID: 12150561
Both front-end and cast-to-money/convert-with-style-1 will work. If you have a small amount of data to deal with, performance difference will be insignificant. If you have millions of records to work with, a well-written front-end formatting is likely to give the best performance, since it can do it in a single function, rather than 2 functions.
0

Featured Post

[Webinar] Disaster Recovery and Cloud Management

Learn from Unigma and CloudBerry industry veterans which providers are best for certain use cases and how to lower cloud costs, how to grow your Managed Services practice in IaaS clouds, and how to utilize public cloud for Disaster Recovery

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how the fundamental information of how to create a table.

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now