Why doesn't it work?
SELECT a.*
FROM dual a
JOIN (SELECT * FROM dual WHERE 1=1) b
ON (1=1);
I get "ORA-00900: invalid SQL statement". Is there a way to use WHERE clause inside the subquery?
Edit: Version 9.2
SELECT *
FROM v$version
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
The following executes just fine:
SELECT a.*
FROM dual a
JOIN (SELECT * FROM dual /*WHERE 1=1*/) b
ON (1=1)