sql use with to get value counts and percentages code example
Example: sql use with to get value counts and percentages
SELECT event,
count(event) as event_count,
count(event) * 100.0 / (select count(*) from event_information) as event_percent
FROM event_information
group by event