Archives of the TeradataForum
Message Posted: Tue, 28 May 2013 @ 23:04:00 GMT
Does anyone have a routine that will reliably convert a unique BYTE value to a unique DECIMAL(18) value?
I need to convert up to a 20 character alphanumeric value to a numeric 18 digit number.
Using the HASHROW function in Teradata, I get a unique BYTE value; however, the only routine I have found for converting the BYTE to an INTEGER value is the HASHBUCKET function. Unfortunately, the HASHBUCKET function does not return a unique INTEGER value for the unique BYTE value.
I have tried a character to hex string function followed by converting the values to numbers; however, I am getting an numeric overflow condition.
Any suggestions would be appreciated.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 28 Jun 2020|