Question

How to convert this query to work in HSQLDB?

SELECT * FROM DUAL D1, DUAL D2 WHERE D1.dummy = D2.dummy(+)

Thanks

Was it helpful?

Solution

The (+) is Oracle's deprecated version of writing an outer join. In HSQLDB you use a standard ANSI SQL LEFT JOIN:

SELECT * 
FROM DUAL D1
   left outer join DUAL D2 on D1.dummy = D2.dummy;

You should stop using th e (+) in Oracle as well.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top