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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 FORMAT NUMBERS

Author  Topic 

vinothrao84
Starting Member

21 Posts

Posted - 2007-10-18 : 03:19:56
Hi,

I have the following table with its data.

FUND_CODE........FUND_PRICE................DATE
TY..................0.35000001...................11/02/2007
HO..................0.24000001...................22/03/2007
BM..................0.59999999...................21/04/2007
MB..................0.5..............................03/08/2007
NI..................0.9210000.....................11/07/2007

I want the result of a select statement to be like this.

FUND_CODE........FUND_PRICE
TY..................0.3600
HO..................0.2400
BM..................0.6000
MB..................0.5000
NI..................0.9210

Please help.....Thx.....

Kristen
Test

22859 Posts

Posted - 2007-10-18 : 03:28:05
Use the front end to format your results, not SQL Server

Kristen
Go to Top of Page

vinothrao84
Starting Member

21 Posts

Posted - 2007-10-18 : 03:32:58
quote:
Originally posted by Kristen

Use the front end to format your results, not SQL Server

Kristen



Ohh...SQL itself cannot be implement is it?

I saw some function like CONVERT but don't know how to use.

Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-10-18 : 03:56:07
Same problem, another question here
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=91184

Why not ask both questions at once?



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-10-18 : 04:02:46
"SQL itself cannot be implement is it?"

It can, but its a bad way to write an application.

Kristen
Go to Top of Page
   

- Advertisement -