1. Write a SQL query that shows all the columns in the Country table where the IndepYear is less than or equal to 1900.
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
1. Write a SQL query that shows all the columns in the Country table where the IndepYear is less than or equal to 1900.
6. Write a SQL query that shows the minimum population from the Country table with an alias of MinPopulation for the North America region and the maximum population from the country table with an alias MaxPopulation. 7. Write a SQL query that shows each region once and the count of the number of countries in the region with an alias of TotalCountries. The results should be sorted in descending order by the count of the number of countries. 8. Write a SQL query that shows each region once and the count of the number of countries in the region with an alias of TotalCountries. The results should show only if the count of the total countries in the region is 15 and below. The results should be sorted in descending order by the count of the number of countries. 9. Write a SQL subquery that shows the unique region names from the Country table where the languages spoken in the countries are English, Spanish OR Italian. The results need to be sorted in ascending order by region. (For this query, please write the query using a subquery to get points). 10. Write a SQL query that shows the Country Name, Population, Life Expectancy, GNP, Language for countries in the Caribbean Region AND where language is English. The results need to be sorted by Population in descending order.