From b0f9422406799dc6f1e1ffba36a65ef79fd29276 Mon Sep 17 00:00:00 2001 From: anthonydb Date: Mon, 16 Nov 2020 21:40:06 -0500 Subject: [PATCH] Chapters 9 & 10 edits --- Chapter_09/Chapter_09.sql | 2 +- Chapter_10/Chapter_10.sql | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Chapter_09/Chapter_09.sql b/Chapter_09/Chapter_09.sql index de87962..8a77623 100644 --- a/Chapter_09/Chapter_09.sql +++ b/Chapter_09/Chapter_09.sql @@ -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 diff --git a/Chapter_10/Chapter_10.sql b/Chapter_10/Chapter_10.sql index 0e8bbc3..a55d1a0 100644 --- a/Chapter_10/Chapter_10.sql +++ b/Chapter_10/Chapter_10.sql @@ -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