In the WHERE section or anywhere really where you have multiple conditions like OR's I know outer parenthesis are required but are the inner ones?
For example my assumption is that
WHERE A.Title='EMP'
AND ( (A.NAME='Mike') OR (A.ID='9001') )
Is the same as writing
WHERE A.Title='EMP'
AND ( A.NAME='Mike' OR A.ID='9001' )
However if we remove the outer parenthesis then I know the query will be different.
Example:
WHERE A.Title='EMP'
AND (A.NAME='Mike') OR (A.ID='9001')
And
WHERE A.Title='EMP'
AND A.NAME='Mike' OR A.ID='9001'
Are both the same thing but not at all what we want.
Is there any chance that data will be evaluated different between the first 2 conditions?