'How to write SQL where clause with more AND and one OR conditions
I am not sure about the where clause in my SQL query. It is composed from more AND conditions and one Or condition. Now I have this
SELECT * FROM aaa
WHERE server_id = 'xxx'
OR (server_id != 'yyy' AND server_id != 'zzz' AND country != 'aaa' AND country != 'bbb')
I am not sure about that parenthesis. Is it neccesary or not?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
