February 12, 2014 at 6:51 am
Hi,
Is it possible to write a function to convert a numbers to words based on language?
I have amount, currency and language as input.
For example if input is 100000 and language is english then should get one lakh
if input is 100000 and language is english united states then should get 100 thousand
similarly for other languages
February 12, 2014 at 6:57 am
Is it possible to write a function to convert a numbers to words based on language?
...
Yes, it is possible. However, you will make your life easier if you Google it first...
It may safe you some typing!
February 12, 2014 at 7:02 am
I am unable to find in google hence posted here. Can you please suggest how it can be done.
February 12, 2014 at 7:10 am
I wonder what have you tried to search for?
Google search returns a banch of topics. One is here leading to sample:
http://stackoverflow.com/questions/1673265/how-to-write-number-to-word-function-in-sql-server
I'm sure you will also find something searching SQLServerCentral itself.
February 12, 2014 at 7:10 am
also be careful; I know this is a common homework question in some SQL classes in India, and you don't want to grab someone elses solution.
you want to learn through the class, build on the concepts they are trying to teach, and not get in trouble. you bet they've already got the same solutions we point you to.
Lowell
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply