sqladmin99
IS-IT--Management
Hi All,
What would be the best way to replace numerical digit with alphabetical character at the same time omitting any decimal point in the Number?
Here is what I am trying to do.
We have one table with pricing information.
Item # Item Price
1 3.44
2 4.45
3 23.99
4 1.02
We want to convert item price to character field. Rules for conversion is
if digit is 0 than o
if digit is 1 than -
if digit is 2 than )
if digit is 3 than L
if digit is 4 than H
if digit is 5 than u
if digit is 6 than z and so on...
We also want to omit decimal from the number. For example, if price is 2.45 than new value after conversion would be )Hu.
I will appreciate your suggestions.
Thank you,
Raj
What would be the best way to replace numerical digit with alphabetical character at the same time omitting any decimal point in the Number?
Here is what I am trying to do.
We have one table with pricing information.
Item # Item Price
1 3.44
2 4.45
3 23.99
4 1.02
We want to convert item price to character field. Rules for conversion is
if digit is 0 than o
if digit is 1 than -
if digit is 2 than )
if digit is 3 than L
if digit is 4 than H
if digit is 5 than u
if digit is 6 than z and so on...
We also want to omit decimal from the number. For example, if price is 2.45 than new value after conversion would be )Hu.
I will appreciate your suggestions.
Thank you,
Raj