1 line
277 B
SQL
1 line
277 B
SQL
select to_country.iso3 as 'iso3', to_country.name as 'country', count(*) as 'count', round(((count(*)/(select count(*) from to_members)) * 100), 1) as 'percent' from to_members left join to_country on to_country.iso3 = to_members.country group by country order by count(*) desc |