I have the following query:
"SELECT COUNT(*) FROM Persons WHERE {1}='A' AND {2}!='A' AND {3}!='A'"
and I have the following task: to get all entries from table Person where {1} is A and {2} or {3} are not ‘A’, i.e. ABC, ABA, etc. Now I can get only ABC, ABB, etc, not ABA. Please, help me.
Use Parenthesis to give Precedence to the logical operators