Answers for "sql use with to get value counts and percentages"

SQL
0

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
Posted by: Guest on April-21-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language