SQL query builder not parsing Parentheses [message #1037398] |
Tue, 09 April 2013 10:03  |
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  |
Brian Payton Messages: 146 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.)
|
|
|
Powered by
FUDForum. Page generated in 0.04579 seconds