In a particular context, im writing a generic query that it will be executed in many different RDBMS (mainly Oracle and Teradata), to make this possible i want to write it in compliance with ANSI SQL, so which one of the following is a valid ANSI SQL query :
select tab.* from (...) tab where 1=1
/* or */
select tab.* from (...) as tab where 1=1