sql query to count the percentage 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