Chapters 9 & 10 edits

This commit is contained in:
anthonydb 2020-11-16 21:40:06 -05:00
parent a316cc5eea
commit b0f9422406
2 changed files with 1 additions and 7 deletions

View File

@ -258,7 +258,7 @@ GROUP BY stabr, stataddr
ORDER BY stabr, stataddr;
-- Listing 9-11: Using the sum() aggregate function to total visits to
-- libraries in 2014 and 2009
-- libraries in 2016, 2017, and 2018
-- 2018
SELECT sum(visits) AS visits_2018

View File

@ -101,12 +101,6 @@ SET st_copy = st;
-- 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,
st_copy
FROM meat_poultry_egg_establishments