Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 04 Sep 2009 @ 11:39:08 GMT


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


Subj:   INSERT into table with select Order by clause
 
From:   Shrihari Saraf

Hi All,

I m new to Teradata and I m implementing our existing application to support Teradata and we already supports DB2 and Oracle. Now I have a issue with the scenario below

     Insert into table test2 (a1,a2,a3)
        select x,y,z from test1 order by z;

When I execute this query it failed with error order by cannot be used in subqueries. Could anyone please let me know if there are any workaround with single SQL statement to achieve the same result.


Thanks

Shri



     
  <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