This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Getting MEAN with Mongo, Express, Angular, and Node and have Simon Holmes on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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

JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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: 484

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
I agree. Here's the link:
subject: Need help tuning a sql statement (SOLVED)