Tables:people (id(pk), firstname, lastname, zip(fk)) — foreign key references zip_code(zip)zip_code (zip(pk), city, state)– id and zip are INT. firstname, lastname, city, and state are VARCHAR.mysql> select * from people;+—-+———–+———-+——-+| id | firstname | lastname | zip |+—-+———–+———-+——-+| 1 | Marty | McFly | 45001 || 2 | Jennifer | Parker | 33647 || 3 | Lorraine | McFly | 33647 || 4 | Biff | Tannen | 33647 || 5 | George | McFly | 08648 |+—-+———–+———-+——-+5 rows in set (0.01 sec)mysql> select * from zip_code;+——-+————+——-+| zip | city | state |+——-+————+——-+| 45001 | New York | NY || 08648 | Trenton | NJ || 33647 | Tampa | FL || 33765 | Clearwater | FL |+——-+————+——-+4 rows in set (0.01 sec) How many rows are returned by each of the following commands? a) SELECT firstname, city FROM people JOIN zip_code; [a] b) SELECT firstname, city FROM people JOIN zip_code WHERE zip_code.state = ‘NY’; [b] c) SELECT firstname, city FROM people JOIN zip_code WHERE people.zip = zip_code.state; [c]
Blog
Tycho Brahe agreed with Copernicus that the earth does indee…
Tycho Brahe agreed with Copernicus that the earth does indeed move.
Due to the success of the steam engine, Britain’s need for c…
Due to the success of the steam engine, Britain’s need for coal lessened.
The world’s first industrial fair was held in Paris in 1851,…
The world’s first industrial fair was held in Paris in 1851, commemorating the rebuilding of the city under the leadership of Emperor Napoleon III.
In general, conservatives hated revolutionary upheavals.
In general, conservatives hated revolutionary upheavals.
The ideology that people should be as free from restraint as…
The ideology that people should be as free from restraint as possible was known as
Adam Smith believed that government
Adam Smith believed that government
The Crystal Palace was an enormous structure made of
The Crystal Palace was an enormous structure made of
According to __________, anti-smoking advertising may lead t…
According to __________, anti-smoking advertising may lead to boomerang effects if consumers perceive it to be a threat to their freedom to make their own behavioral decisions because people don’t like being told what to do.
Britain’s emergence as the first industrial power was aided…
Britain’s emergence as the first industrial power was aided by all of the following EXCEPT