Welcome, Guest
Please Login or Register.    Lost Password?

Query builder multiple conditions
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Query builder multiple conditions
#157
Query builder multiple conditions 2 Years, 1 Month ago Karma: 1  
It is as follows:
As you can see in the attached screen shot, what QB does is to build a list of fields to which SQL operators are associated in a grid.

The general rule seems to be that adding fields vertically yields AND statments, whereas adding conditions horizontally yields OR statements.

The problem is that each column of Criteria yields a single parenthisized clause containing conditions connected by AND's. And those parenthesized clauses (each representing a criteria column) are then connected by ORs.

This is completely wrong and unusable!

There HAS to be a way of adding ORs inside of an AND clause.

To simplify the matter somewhat ...
You will see from my screenshot that what I was trying to acheive was something like:
(Field 1 - Condition) AND
(Field 2 - Condition) AND
(Field 3 - (Condition-A OR Condition-)

That is not what the SQL generator produced. It produced something like:
(
(Field 1 - Condition) AND
(Field 2 - Condition) AND
(Field 3 - Condition-A)
)
OR
(Field 3 - Condition-



This is completely unusable. (And is the reverse of what one is normally trying to do).

==================

Either there is some way that I could'nt figure out, for the user to control parenthesis -- or this is not working in a sensible way.

There has got to be a simple way to test multiple conditions against a single field in a single clause.
mail-question (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/01/08 13:26 By mail-question.
The administrator has disabled public write access.
 
#158
Re:Query builder multiple conditions 2 Years, 1 Month ago Karma: -1  
Hi,

You can add multiple conditions, for this purpose you can use the criteria field in the grid.

Please check the follow image:



Regards,
Peter
ptesone (Admin)
Admin
Posts: 27
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop

Why DreamCoder

DreamCoder is downloaded over 1 millions time and has accumulated over 10.000 happy customers from over 100 countries in the last 8 years.
Now we are the best database tools availabe 100% free in the world for Oracle , MySQL and PostgreSQL.

Community

 SQLDeveloper support forums
Join our Community
and help us create better products
Home