Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm testing some queries with an old version of Informix (9.2.1) and can't seem to execute even the most basic queries containing RIGHT OUTER JOIN or FULL OUTER JOIN. Tried several variations (RIGHT JOIN, OUTER JOIN or just OUTER), but without any success. INNER JOIN and LEFT JOIN work fine.

Does anyone know the correct syntax for outer/right joins in older versions of Informix, or are these joins just not possible?

share|improve this question
up vote 2 down vote accepted

Ok, at least an outer join works just with different syntax: just using OUTER with a comma after the first table and a WHERE instead of an ON.

Edited to add an example from

SELECT c.customer_num, c.lname, o.order_num FROM customer c, 
   OUTER orders o WHERE c.customer_num = o.customer_num
share|improve this answer
Sorry to ask and answer the question so quickly, wasn't expecting my colleague to know the answer. – newenglander May 9 '12 at 14:26
Can you add an example of this syntax? It sounds weird, at least. – ypercubeᵀᴹ May 9 '12 at 14:58
And by the way, there is no DBMS that has OUTER JOIN or just OUTER. There are three outer joins, the LEFT OUTER JOIN or just LEFT JOIN, the RIGHT OUTER JOIN or just RIGHT JOIN and the FULL OUTER JOIN or just FULL JOIN. Some DBMS have all 3, some have only the Left and Right. Perhaps Informix has only the LEFT OUTER JOIN. – ypercubeᵀᴹ May 9 '12 at 15:00
and FROM a , b WHERE = is a hidden inner join, not outer. – ypercubeᵀᴹ May 9 '12 at 15:13
@ypercube: Newer versions of Informix have LEFT, RIGHT, and FULL outer joins. I mentioned OUTER JOIN and OUTER referring to different possibilities for the syntax, not different joins. @RolandoMySQLDBA: Thanks for jumping in with an example and link. – newenglander May 9 '12 at 16:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.