SQL Parentheses use in an OR clause
问题 Was wondering whether anyone would know why do we use the parentheses in this SQL: So, the format goes as follows: Name,location and department of the service of the employees whose name starts with A or B. (A rough translation from French). I answered the following way: SELECT service.nom_serv, localite.ville, localite.departemen FROM service, localite, employe WHERE service.code_loc=localite.code_loc AND employe.service=service.code_serv AND ((employe.nom LIKE 'A%') OR (employe.nom LIKE 'B%