This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes JDBC and the fly likes Need help tuning a sql statement (SOLVED) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Need help tuning a sql statement (SOLVED)" Watch "Need help tuning a sql statement (SOLVED)" New topic

Need help tuning a sql statement (SOLVED)

Matt Kohanek
Village Idiot
Ranch Hand

Joined: Apr 04, 2009
Posts: 483

Hey there,

So I have the following SELECT:

I have need of some new data, so I have added the following to get what I need out of it:

Basically that last line is all that matters i think. Is there a way to make that all boolean (AND, OR), rather than needing to use NVL? I am sure it is possible, I just have not figured out how.


solution - this worked

True wisdom is in knowing you know nothing - Socrates
It is sorta covered in the JavaRanch Style Guide.
subject: Need help tuning a sql statement (SOLVED)