Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 28 May 2013 @ 23:04:00 GMT


     
  <Prev Next>  
<<First
<Prev
Next> Last>>  


Subj:   BYTE Conversion to DECIMAL(18)?
 
From:   Nathan_S_Smith

Hi,

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.


Thanks,

Nathan



     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023