Question: Using python and SQLite, connect to the database called world.db . Using SQL queries in python, answer the following questions ( make appropriate comments
Using python and SQLite, connect to the database called "world.db Using SQL queries in
python, answer the following questions make appropriate comments for each step:
a Input the data into table 'city':
ID for city City Name Code for country City population
King's Landing WTO
After you input the data, print out just this record from table 'city' to verify it is there.
Take a screenshot and put in the word file
b Using python, print out the country Name, Continent, Region and the country Population
of all the countries, whose country population is larger than
Question:
Since we already updated the data in step a for city 'King's Landing' in country 'Westero'
country code WTO whose population is billion larger than billion did you find
country 'Westero' in the result from step b Why or why not? Take a screenshot and put
in the word file
c Print out all the fields for the cities in the US whose city population is larger than
Use queries to calculate how many cities in the result? What is the average
population for them? Take a screenshot and put in the word file
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
