Oracle join operator

How to rewrite this:

select tab1.id, tab2.id, tab3.id 
from tab1, tab2, tab3 
where tab1.col1 = tab2.col1(+) and tab2.col2 = tab3.col2(+);

using OUTER JOIN syntax?

Answers


select tab1.id, tab2.id, tab3.id 
from tab1
left outer join tab2 on tab1.col1 = tab2.col1
left outer join tab3 on tab2.col2 = tab3.col2;

Need Your Help

Where to put custom advanced queries in a sailsjs mongodb stack

mongodb sails.js postman sails-mongo

I want to proceed with more advanced queries in a sailsjs and mongodb stack where sailsjs is setup to serve as an api with data against a front end client. I've been able to fetch data with some ba...

How can I find the selected item in a QTreeWidget?

c++ qt events kde treewidget

I have a class that inherits QTreeWidget. How can I find the currently selected row?