Quick Check 4.7 – Data 100, Summer 2020
Sign in to Google to save your progress. Learn more
Which of the following are true? *
Required
(Spring 2019 Midterm 1) For the following question consider the following tables. The cities table contains one row per city and its population in thousands. The names table contains one row per state. The states table contains one row per state with its population in millions. Assume that cities contains only a small subset of US cities. There may be multiple cities in each state, but every city is in a state that appears in both names and states, and every state contains at least one city.
Suppose we have a table t that is the same as cities but with an additional column ab containing the abbreviation (e.g. CA) of the state in which each city is located. Fill in the blank in the following query to create a two-column table u of the cities and their populations (labeled city and pop) that are in states with a population above 5 million.
CREATE TABLE u AS SELECT city, pop FROM t WHERE ab IN (_______________________); *
For the following question consider the following tables:
What is the output of the following query? *
Captionless Image
Submit
Clear form
This form was created inside of UC Berkeley. Report Abuse