Just found out that Oracle does not like it when you use the AS
keyword to alias a subquery:
SELECT * FROM (SELECT * FROM products) AS p
The pattern for the SQL 99 ANSI is that the table can have an alias WITHOUT the AS
keyword so, you can take out AS
and it should work on every RDBMS. See it on fiddle:
In ISO/IEC 9075-2:1999, section 7.6 Also confirmed to work:, page 232:
::=
|
::=
[ [ AS ]