Question 1: CITYSTATE CUSTOMER DEPARTMENT EMPLOYEE ITEM LOCATION MATERIAL ORDER POSITION PRODUCTION SUPPLIER
Queries: All names are to be in the “Last Name, First name” format. These columns should be labeled by the appropriate name (Customer, Supplier).
|
Solution 1: QUERY 1 Sol) QUERY 2 Sol) QUERY 3 Sol) QUERY 4 Sol) Sol) |
Question 2: WORLD DATABASE CITY Id pk COUNTRY Code pk
COUNTRY LANGUAGE Countrycode pk Answer the following Queries: 1. I want a list of countries and languages spoken there that are used by more than 50% of the population. 2. I want a list of countries and the number of languages spoken there for all countries with 10 or more languages. 3. I want a list of countries and official languages and precentages where the official language is spoken by less then 50% of the population. 4. I want a list of countries and cities where the city population is greater than 10% of the country population. 5. I want a list of all African countries that gained their independence since 1964 6. I want the name of the country, the name of the district, and the number of cities in each district for each district that has 10 or more cities in it. 7. I want the average life expectancy for each continent, from highest to lowest. 8. I want the name of the country and the life expectancy for each country that has a life expectancy less than the average life expectancy. 9. I want a list of languages spoken in the United States and the number of people in the United States who speak that language. 10. I want the name of the country and its population for every country that has more than the average population of the world sorted by population. |
Solution 2: Q2) I want a list of countries and the number of languages spoken there for all countries with 10 or more languages. Q3) I want a list of countries and official languages and precentages where the official language is spoken by less then 50% of the population. Q4) I want a list of countries and cities where the city population is greater than 10% of the country population. Q5) I want a list of all African countries that gained their independence since 1964. Q6) I want the name of the country, the name of the district, and the number of cities in each district for each district that has 10 or more cities in it. Q7) I want the average life expectancy for each continent, from highest to lowest. Q8) I want the name of the country and the life expectancy for each country that has a life expectancy less than the average life expectancy. Q9) I want a list of languages spoken in the United States and the number of people in the United States who speak that language. Q10) I want the name of the country and its population for every country that has more than the average population of the world sorted by population. |