****BACK-END: Aula05 - exercício sala 16/07/2020 ** ###### tags: `SQL` ###### tags: ACADEMY ```1) QUESTÃO select distinct regiao from countries order by regiao; 2) QUESTÃO select regiao, COUNT(regiao) from countries group by regiao order by regiao; 3) QUESTÃO select pais from countries where populacao >= 5000000 and densidade_populacional >= 250 AND pib >= 1000 order by telefonia_movel asc limit 5; 4) QUESTÃO select pais from countries where populacao >= 5000000 and densidade_populacional >= 250 AND pib >= 1000 order by telefonia_movel asc limit 5 offset 5; 5) QUESTÃO select pais from countries where (regiao = 'SUB-SAHARAN AFRICA' or regiao = 'NORTHERN AFRICA' or regiao = 'NEAR EAST') and industria_porcentagem >= 0.66 and pib > 5000; 6) QUESTÃO select distinct pais from countries where (industria_porcentagem + servicos_porcentagem) >= 0.75 and (regiao <> 'EASTERN EUROPE' and regiao <> 'WESTERN EUROPE' and regiao <> 'LATIN AMER. & CARIB' and regiao <> 'NORTHERN AMERICA') and alfabetizacao > 90 and taxa_migratoria = 0;