Hi all.
I have a comparison in Oracle for two numbers. 010 and 10. They are equal as long as numeric equality is concerned; however, I need to compare them as String. I tried to_char but it doesn't work.
Are there any other functions which would let me do exact comparison of numeric value as string?
------------To clarify everyone's doubt---------------------
I have three columns address1 address2 and address3 I want to compare ONLY the digits in the concatenation of all three. so for example if values are as follows: address1 = 01 park avenue address2 = 20 golden gate address3 = null
then I would like to compare data in table to see if any of the address's concatenated value comes out to be 0120
However right now it's equalizing 120 also with 0120 which I do not desire.
Data is extracted and concatenated, so not stored in a type of column. All I need is to ensure, that these numbers are compared "EXACTLY" and not as numbers.
Please suggest.
Cheers