Introduction to SQL
A subquery in an SQL SELECT statement:

can always be duplicated by a join.
has a distinct form that cannot be duplicated by a join.
can only be used with two tables.
cannot have its results sorted using ORDER BY.

ANSWER DOWNLOAD EXAMIANS APP

Introduction to SQL
Find the temperature in increasing order of all cities

SELECT city, temperature FROM weather ORDER BY city;
SELECT city, temperature FROM weather;
SELECT city, temperature FROM weather ORDER BY temperature;
SELECT city FROM weather ORDER BY temperature;

ANSWER DOWNLOAD EXAMIANS APP

Introduction to SQL
Find the name of cities with all entries whose temperature is in the range of 71 and 89

SELECT * FROM weather WHERE temperature NOT IN (71 to 89);
SELECT * FROM weather WHERE temperature BETWEEN 71 AND 89;
SELECT * FROM weather WHERE temperature NOT IN (71 and 89);
SELECT * FROM weather WHERE temperature NOT BETWEEN 71 to 89;

ANSWER DOWNLOAD EXAMIANS APP