SQL adaptation guide For Genero db 3.6x, 3.8x / Data manipulation |
Prior to Genero db version 3.60, the Genero db syntax for OUTER joins is different from the original Informix® outer join syntax. Genero db version 3.60 supports the same OUTER joins syntax as Informix.
SELECT ... FROM a, OUTER(b) WHERE a.key = b.akey SELECT ... FROM a, OUTER(b,OUTER(c)) WHERE a.key = b.akey AND b.key1 = c.bkey1 AND b.key2 = c.bkey2
SELECT ... FROM a, LEFT OUTER JOIN b ON a.key = b.key SELECT ... FROM a LEFT OUTER JOIN b LEFT OUTER JOIN c ON ( (b.key1 = c.bkey1) AND (b.key2 = c.bkey2) ) ON ( (a.key = b.akey) )
Genero db supports Informix outer joins syntax, with the limitation that sub-queries are not allowed in outer-join predicates.
However, for SQL portability, you should use the ANSI outer join syntax instead of the old Informix OUTER syntax.