Advertisement
evgenko

Untitled

Jun 8th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.68 KB | None | 0 0
  1. /*select country.Name, country.Capital, c.Population from country inner join city c on Capital = c.ID order by c.Population DESC LIMIT 5;
  2. select sum(country.Population*c.Percentage/100) from country inner join countrylanguage c on country.Code = c.CountryCode where country.Continent="Europe" and c.Language="English";
  3. */
  4.  
  5. /*select CountryCode, count(*) from countrylanguage group by CountryCode;
  6. */
  7.  
  8. select CountryCode, count(IsOfficial) as T from countrylanguage where IsOfficial="T" group by CountryCode;
  9. select CountryCode, count(IsOfficial) as F from countrylanguage where IsOfficial="F" group by CountryCode;/* on CountryCode = CountryCode;
  10.  
  11. /*
  12. select * from countrylanguage;*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement