Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 04 Sep 2009 @ 19:10:37 GMT


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


Subj:   Re: INSERT into table with select Order by clause
 
From:   Christian Schiefer, makeITdone

Hi,

there are no ordered sets in Teradata.

Maybe you are happy with.

     Insert into table test2 (a1,a2,a3) select x,y,z from test1
     qualify row_number() over ( order by z ) <= 10000;

This will create the 10000 records with the smallest 'z'


BR

Christian from Vienna



     
  <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