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 |
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 advanceregardssunil 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 pieceJimdeclare @number floatset @number = 1223456.70select convert(varchar(10),FLOOR(@number/100000))+ ' Lakhs 'Everyday I learn something that somebody else already knew |
 |
|
pk_bohra
Master Smack Fu Yak Hacker
1182 Posts |
Posted - 2011-01-05 : 11:24:32
|
Simulate this logichttp://www.sqlteam.com/forums/topic.asp?TOPIC_ID=11157 |
 |
|
|
|
|