Question: Install an SQL environment to work with ( SQLite is preferred in this class ) . Create a new SQL script named world _ cities.sql
Install an SQL environment to work with SQLite is preferred in this class
Create a new SQL script named worldcities.sql
Write an SQL statement to create a table named 'cities'. This table should have the following columns:
id: a unique identifier for each city primary keyname: the name of the city'population': the population of the city'country': the country where the city is located
Insert data into the 'cities' table. This data can be real or made up but should include at least different cities from at least different countries. Be sure to include a mix of small and large cities.
Write SQL statements to perform the following tasks, and add comments to your script explaining what each statement does:
Select all cities in your tableSelect all cities in a specific country of your choiceUpdate the population of a specific cityDelete a specific city from the table
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
