Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 24 Feb 2012 @ 10:56:47 GMT


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


Subj:   Re: Valid trailing spaces in key values
 
From:   Dsouza, Irwing

There are various workarounds, none of which are pretty, the first one that comes to mind is creating a column that holds length of the string and using that in combination with your Natural Key to generate a "surrogate key"

So something like

     Select ' abc ' as key_col, CHARACTER_LENGTH (' abc ' ) as key_length


     key_col   key_length
     abc          5

Regards,

Irwing



     
  <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