Chapter 5 code edits
This commit is contained in:
parent
360bade5a2
commit
ef1218d773
@ -58,7 +58,7 @@ FROM us_counties_pop_est_2019
|
|||||||
ORDER BY area_land DESC
|
ORDER BY area_land DESC
|
||||||
LIMIT 3;
|
LIMIT 3;
|
||||||
|
|
||||||
SELECT county_name, state_name, internal_point_lon
|
SELECT county_name, state_name, internal_point_lat, internal_point_lon
|
||||||
FROM us_counties_pop_est_2019
|
FROM us_counties_pop_est_2019
|
||||||
ORDER BY internal_point_lon DESC
|
ORDER BY internal_point_lon DESC
|
||||||
LIMIT 5;
|
LIMIT 5;
|
||||||
@ -98,7 +98,7 @@ FROM 'C:\YourDirectory\supervisor_salaries.csv'
|
|||||||
WITH (FORMAT CSV, HEADER);
|
WITH (FORMAT CSV, HEADER);
|
||||||
|
|
||||||
INSERT INTO supervisor_salaries (town, county, supervisor, salary)
|
INSERT INTO supervisor_salaries (town, county, supervisor, salary)
|
||||||
SELECT town, 'My County', supervisor, salary
|
SELECT town, 'Mills', supervisor, salary
|
||||||
FROM supervisor_salaries_temp;
|
FROM supervisor_salaries_temp;
|
||||||
|
|
||||||
DROP TABLE supervisor_salaries_temp;
|
DROP TABLE supervisor_salaries_temp;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user