Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 29 Oct 2007 @ 19:58:59 GMT


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


Subj:   Re: Generate unique id
 
From:   hectorsiverio

Not sure if this is what your looking for, but I use RowNumber to get a Unique ID for my rows.

row_number() over(order by columnA, columnB) rownum -- You can use more than two columns for your unique RowNum.


Hope that helps.



     
  <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