You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@trafodion.apache.org by "Liu, Ming (Ming)" <mi...@esgyn.cn> on 2016/03/24 08:15:27 UTC
Does Trafodion support to use 'order by' in a subquery
Hi, all,
I don't know if this is same in other database, but in Trafodion, if I want to have a subquery which have a 'order by', it seems not allowed. Is this normal or a limitation in Trafodion?
For example:
create table t1 ( c1 int, c2 int);
select * from (
Select * from t1 order by c1);
*** ERROR[15001] A syntax error occurred at or before:
select * from (select * from t1 order by c1);
^ (44 characters from start of SQL statement)
Thanks in advance,
Ming