Query Builder: On Inline Views and ANSI Joins

Stumbling around on StackOverflow this morning, I came across this person’s HOMEWORK question, and the answer chided them on not using ANSI style JOINs.

I’m not going to post the actual SQL here, but if you follow the previous link, it’s there for you to grab and have a go.

I hope they get an A+

Something I like to do is take REAL code off the innerwebs and use it to test our parser, formatter, and even the Query Builder.

So let’s look at how the Query Builder handles this query:

And YES, I formatted it first. But anyways…it gives us this:

This is pretty boring, it’s just the SELECT * FROM the inline view bit.

The fun or main part of the query can be found here:


And now – about the ANSI/Oracle Style JOINs bit…let’s switch that from the SO answer with ANSI joins over to a traditional Oracle-looking query. So right-click:

And now toggle back to the Worksheet:


A Few Parting Notes

If you were building this query from scratch, when you go to build the subquery, right-click in the diagram space:

Then toggle over to ‘Query1’ and ‘draw’ your inline view there

  • I’m not debating ANSI or Oracle JOINs here. Or Anywhere for that matter.
  • You can read about inline views in general here (Oracle Docs)
  • Make sure you’re on version 18.2 or higher of SQLDev

We fixed a HUGE performance issue with the Query Builder in the last drop of SQL Developer. IF you’re running an old copy and you want to give the query builder a play, upgrade FIRST.



TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569