6628c13c1e50eMidTerm Spring2024
6628c13c1e50eMidTerm Spring2024
Name:
Roll No:
25 marks
Q1. Develop SQL queries for the following tasks. queries to the following task. The schema of
world database is given below. (CLO-3)
Task 1 Find all countries in Asia with a population between 100 million and 500 million.
Query
Output
Task 2 Find all cities where the name starts with "H" and ends with "d".
Query
Output
Task 3 Find all languages where the name starts with a vowel sorted alphabetically.
Query
Output
Show how many countries are found in each continent, displaying the continent with the most
Task 4
countries to the least?
Query
Output
Task 5 Find the top 3 most populous cities globally and their corresponding countries.
Query
Output
Task 6 Calculate the total population and number of cities for each continent.
Query
Output
Find the countries with at least 2 official languages (IsOfficial = 'T') and a total percentage of
Task 7
official languages exceeding 90%.
Query
Output
Calculate the average life expectancy across all countries and identify countries with a life
Task 8
expectancy below the average.
Query
GOOD LUCK