Chapters 9 & 10 edits
This commit is contained in:
parent
a316cc5eea
commit
b0f9422406
@ -258,7 +258,7 @@ GROUP BY stabr, stataddr
|
|||||||
ORDER BY stabr, stataddr;
|
ORDER BY stabr, stataddr;
|
||||||
|
|
||||||
-- Listing 9-11: Using the sum() aggregate function to total visits to
|
-- Listing 9-11: Using the sum() aggregate function to total visits to
|
||||||
-- libraries in 2014 and 2009
|
-- libraries in 2016, 2017, and 2018
|
||||||
|
|
||||||
-- 2018
|
-- 2018
|
||||||
SELECT sum(visits) AS visits_2018
|
SELECT sum(visits) AS visits_2018
|
||||||
|
|||||||
@ -101,12 +101,6 @@ SET st_copy = st;
|
|||||||
|
|
||||||
-- Listing 10-10: Checking values in the st and st_copy columns
|
-- Listing 10-10: Checking values in the st and st_copy columns
|
||||||
|
|
||||||
SELECT st,
|
|
||||||
st_copy
|
|
||||||
FROM meat_poultry_egg_establishments
|
|
||||||
ORDER BY st;
|
|
||||||
|
|
||||||
-- With WHERE clause to check for equality
|
|
||||||
SELECT st,
|
SELECT st,
|
||||||
st_copy
|
st_copy
|
||||||
FROM meat_poultry_egg_establishments
|
FROM meat_poultry_egg_establishments
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user