Oracle's OUTER JOIN (+) on string - Migration PostgreSQL -


i'm migrating client's software database oracle postgresql, , have trouble understanding query, does, , consequently how migrate it.

the query is:

select *  tbl1, tbl2, tbl3, tbl4  tbl3.project_id = tbl1.project_id   , tbl2.type_id = tbl1.type_id   , tbl4.property_name(+)='id'   , tbl4.entity_id(+)=tbl1.entity_id 

and part don't get, outer join (+) on 'id'. join on table, ok, on string? i've no idea of does.

do has idea? thanks.

tbl4.property_name(+)='id' means when line inner joined, value has 'id', when line outer joined, condition evaluated true

however should rewrite statement standard as:

select *  tbl1 join tbl2 on tbl2.type_id = tbl1.type_id join tbl3 on tbl3.project_id = tbl1.project_id left join tbl4 on tbl4.entity_id=tbl1.entity_id , tbl4.property_name='id'  

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -