Oct 16, 2003 #1 filure Technical User Jun 30, 2003 3 FR Hello, in the query : SELECT ... FROM ... WHERE X AND Y OR Z How is evaluated the filter? (X AND Y) OR Z ? X AND (Y OR Z) ? What is the precedence? Thank u.
Hello, in the query : SELECT ... FROM ... WHERE X AND Y OR Z How is evaluated the filter? (X AND Y) OR Z ? X AND (Y OR Z) ? What is the precedence? Thank u.
Oct 16, 2003 #2 jgerstb Programmer Jan 7, 2003 15 US I believe it is AND first and then OR. But I would use parens to make it clear to anyone reading the code what conditions should be ORed Upvote 0 Downvote
I believe it is AND first and then OR. But I would use parens to make it clear to anyone reading the code what conditions should be ORed
Oct 16, 2003 #3 rrrkrishnan Programmer Jan 9, 2003 107 US It will be interpreted as (X AND Y) OR Z. Upvote 0 Downvote