How can I do multiple counts for the same field in mysql? The code below for a single count works fine
SELECT fruit, COUNT(DISTINCT site) AS `apple` FROM grocery where fruit like '%06201%'
However, when I have tried this but I get syntax error
SELECT
SUM(fruit like '%06201%') AS `apple`,
SUM(fruit like '%02206%') AS `pears`,
FROM grocery