SQL Flashcards

1
Q

Query all columns for all American cities in the CITY table with populations larger than 100000. The CountryCode for United States is USA.

The CITY table is described as follows:

LINK

A

SELECT * FROM CITY WHERE COUNTRYCODE = 'USA' AND POPULATION >= 100000;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Query NAME column for all Canadian cities in the CITY table with populations larger than 100000. The CountryCode for Canada is CA.

The CITY table is described as follows:

LINK

A

SELECT NAME FROM CITY WHERE COUNTRYCODE= 'CA' AND POPULATION>=100000 ORDER BY CITY ASC;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly