Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
missMac
Posting Yak Master
124 Posts |
Posted - 2009-09-10 : 22:11:00
|
| Hello guys,we normally format our data in our front end.But Am wondering, if MSSQL can format integers, such that.1000 will appear as 1,000e.g.select currency from products where currency > 999thanksMM |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2009-09-10 : 22:18:07
|
what is the data type for currency ? integer or money ?if it is integer, convert to money first, then convert to string with format style 1select convert(varchar(10), currency, 1)from products where currency > 999 KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2009-09-11 : 02:58:26
|
| Note that 1,000 is a varchar and not to be treated as a numberMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|