When I run the query, I get this:
Whereas I need it to be grouped according to the CASE statement below:
select business_name,
case
when business_name like '%school%' then 'School'
when business_name like '%restaurant%' then 'Restaurant'
when business_name like '%caf%' then 'Cafe'
else 'other'
end
as business_classification
from sf_restaurant_health_violations;