How to club AND and ORs together of a where query?

Let me give an example
Select * FROM product WHERE type = “123” AND category = “healthcare” OR category = “retail”
how to ensure all the category conditions are evaluated first?

Ramesh

Qualify with precedence (i.e. ()).

Select * 
FROM product 
WHERE  ((category = "healthcare" OR category = "retail") AND   type = "123" )

Thank you very much :slight_smile: