Logical operator AND having higher order of precedence than IN

Posted by AspOnMyNet on Stack Overflow See other posts from Stack Overflow or by AspOnMyNet
Published on 2010-04-23T17:56:43Z Indexed on 2010/04/23 18:13 UTC
Read the original article Hit count: 325

Filed under:

I’ve read that logical operator AND has higher order of precedence than logical operator IN, but that doesn’t make sense since if that was true, then wouldn’t in the following statement the AND condition got evaluated before the IN condition ( thus before IN operator would be able to check whether Released field equals to any of the values specified within parentheses ?

SELECT Song, Released, Rating
FROM Songs
WHERE
Released IN (1967, 1977, 1987)
AND
SongName = ’WTTJ’

thanx

© Stack Overflow or respective owner

Related posts about sql