Home Support Support Forums
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 Months ago Karma: 0  
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 Months 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: 25
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

Support Center

SQLDeveloper provides support in multiple ways, for an expedite resolution of any issue related to our databases management and products development.
Request Support:
flag-colombia-iconColombia
Address: Calle 39 norte #6n-41
Tel: Phone +57 +2 5241133
E-mail: sales.co@sqldeveloper.net
flag-germany-iconGermany
Magic Hands – Thomas Sauerland e.K.
Address: Möhnestr. 16 59755 Arnsberg
Tel: Phone +49 02932/802750
Fax: +49 02932/805929
E-mail: sales.ge@sqldeveloper.net
flag-usa-iconUnited States
eFax: +1-817-796-2207
E-mail: sales@sqldeveloper.net