Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » SQL query builder not parsing Parentheses
icon5.gif  SQL query builder not parsing Parentheses [message #1037398] Tue, 09 April 2013 10:03 Go to next message
kuldeep Singh is currently offline kuldeep Singh
Messages: 2
Registered: January 2013
Junior Member
SQL query builder do not parse parentheses in query.So,Using sql parser it is possible to write following query-

select * from table where (A1 and A2) or A3

like this

select * from table where A1 and A2 or A3

As and has precedence over or.

But how to achieve following query using SQL query builder-

select * from table where (A1 or A2) and A3

[Updated on: Tue, 09 April 2013 10:07]

Report message to a moderator

Re: SQL query builder not parsing Parentheses [message #1063333 is a reply to message #1037398] Wed, 12 June 2013 21:02 Go to previous message
Brian Payton is currently offline Brian Payton
Messages: 152
Registered: July 2009
Senior Member
The "Conditions" tab of the GUI doesn't allow you to create a search condition such as (A1 OR A2) AND A3 directly, but the SQL parser used by the SQL Query Builder supports it. So you can enter A1 OR A2 AND A3 in the Conditions tab, then click on the SQL source area and add the parens as needed directly to the SQL. (Then click on another panel to trigger the SQL parser.)
Previous Topic:driver combobox/dropdown is empty on windows 7
Next Topic:DTP 1.11 (Kepler) download is missing
Goto Forum:
  


Current Time: Sat Jul 26 03:25:45 EDT 2014

Powered by FUDForum. Page generated in 0.01622 seconds