|
|
Archives of the TeradataForum
Message Posted: Fri, 04 Sep 2009 @ 11:39:08 GMT
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
| |