Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #counts #percentages
ADD COMMENT
Topic
Name
5+9 =