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 2005 Forums
 Transact-SQL (2005)
 convert number into word in sql 2005

Author  Topic 

sunilmahanti
Starting Member

4 Posts

Posted - 2011-01-05 : 10:34:55
Hi 2 all,

1223456.70 i want to convert this currency in indian standards like twelve lakhs thwenty three thousand four hundred fifty six only.
plz any anybody help the code of that in t-sql in sql management studio.

thanks in advance

regards

sunil kumar

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2011-01-05 : 11:01:17
I guess you could pull it apart piece by piece
Jim

declare @number float
set @number = 1223456.70
select convert(varchar(10),FLOOR(@number/100000))+ ' Lakhs '

Everyday I learn something that somebody else already knew
Go to Top of Page

pk_bohra
Master Smack Fu Yak Hacker

1182 Posts

Posted - 2011-01-05 : 11:24:32
Simulate this logic
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=11157
Go to Top of Page
   

- Advertisement -