I am trying to find a way to convert an integer value to hex in SQL. I have found the Teradata function chartohexint, but then I need to convert from int to char then from char to hex. When I do this somehow I end up with non 1 to 1 mapping between integers and the hex equivalents. Does anyone have any ideas how to do this?
(Scratches head looking bemused...)
I would like to stay in SQL, but if there is someway to code a function, how would that be done???
Thanks
(Scratches head looking bemused...)
I would like to stay in SQL, but if there is someway to code a function, how would that be done???
Thanks