Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 12 Apr 2006 @ 11:47:21 GMT


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


Subj:   Re: Building row numbers
 
From:   Victor Sokovin

  Does anyone have an alternative way of creating row numbers using Teradata SQL other than using csum(1,1) as below?  


          > INS DB.Test SEL
          > Name,ProductNumber,csum(1,1) as RowNumber
          > FROM ABC.Atable

Believe it or not but there is a function called ROW_NUMBER. I don't remember now in which release exactly it was introduced but you should be able to find all the details in the Forum's library:

www.teradataforum.com/ncr_pdf.htm , Functions and Operators.


Regards,

Victor



     
  <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