I have a pretty old informix procedure which I would like to use in my new PostgreSQL db. I'm new to Postgres and I feel like the joins are pretty different.
This is a part of my old Informix code:
CREATE PROCEDURE mw_getsvid(bid INT)
RETURNING INT;
DEFINE aid INT;
SELECT a.id INTO aid
FROM cerberus c, delphi d,
OUTER (emilia e, fragile f)
WHERE c.id = [...]
RETURN aid;
END PROCEDURE;
so what I am trying to do is that c outer joins with e or f. or d outer joins with e or f.
I would be pretty happy if anyone could send me his ideas or a simillar example.