Hi,
I'm converting from Oracle to Postgresql and I'm trying to do an outer join on 3 tables and then I also have some other where clauses. Here's the query in Oracle
select c.*,s.session_label, (u.first_names||' '||u.last_name) as admin_updater,
(u2.first_names||' '||u2.last_name) as contact_user,
pts.email as contact_email,
null as authors
from ss_papers c, ss_sessions s, persons u, persons u2, parties pts
where c.session_id = s.session_id and
c.admin_update_by = u.person_id(+) and
c.contact_user_id = u2.person_id(+) and
c.contact_user_id = pts.party_id(+) and
c.paper_id =aper_id
I can find all sorts of documentation on using outer joins for two tables, but how do you do more? Do I need to declare an inner join for my other 2 where clauses? Any help would be appreciated. Thanks!!
I'm converting from Oracle to Postgresql and I'm trying to do an outer join on 3 tables and then I also have some other where clauses. Here's the query in Oracle
select c.*,s.session_label, (u.first_names||' '||u.last_name) as admin_updater,
(u2.first_names||' '||u2.last_name) as contact_user,
pts.email as contact_email,
null as authors
from ss_papers c, ss_sessions s, persons u, persons u2, parties pts
where c.session_id = s.session_id and
c.admin_update_by = u.person_id(+) and
c.contact_user_id = u2.person_id(+) and
c.contact_user_id = pts.party_id(+) and
c.paper_id =aper_id
I can find all sorts of documentation on using outer joins for two tables, but how do you do more? Do I need to declare an inner join for my other 2 where clauses? Any help would be appreciated. Thanks!!