Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELECT City,
SUM(CASE WHEN Column = 'yes'
THEN 1
ELSE 0 END)*100.0/COUNT(*) AS YesPrc, SUM(CASE WHEN Column = 'No'
THEN 1
ELSE 0 END)*100.0/COUNT(*) AS NoPrc
FROM YourTable
GROUP BY City
SELECT City,
SUM(CASE WHEN Column = 'yes'
THEN 1
ELSE 0 END)*100.0/COUNT(*) AS YesPrc,
SUM(CASE WHEN Column = 'yes'
THEN 1
ELSE 0 END) AS NumberYesPrc,
SUM(CASE WHEN Column = 'No'
THEN 1
ELSE 0 END)*100.0/COUNT(*) AS NoPrc,
SUM(CASE WHEN Column = 'No'
THEN 1
ELSE 0 END) AS NumberNoPrc
FROM YourTable
GROUP BY City