Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 12 Jan 2007 @ 13:11:41 GMT


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


Subj:   Re: ORDER BY in INSERT SELECT to GENERATE Sequence
 
From:   Michael Larkins

I would try the Row_number OLAP function in the select. It will order the values and assign the sequential number. I have never tried these in an insert select - my guess is that it would work because the sort is internal to the function and works with a derived table.


Regards,

Michael Larkins
Certified Teradata Master
Certified Teradata SQL Instructor



     
  <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: 27 Dec 2016