From 14795ecd355fa7a20cfc6cf948d680673eec439e Mon Sep 17 00:00:00 2001 From: Anthony DeBarros Date: Fri, 24 Sep 2021 14:32:32 -0400 Subject: [PATCH] Minor edits during proofreading --- Chapter_06/Chapter_06.sql | 6 +++--- Try_It_Yourself/Try_It_Yourself.sql | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Chapter_06/Chapter_06.sql b/Chapter_06/Chapter_06.sql index d319f77..6c13c13 100644 --- a/Chapter_06/Chapter_06.sql +++ b/Chapter_06/Chapter_06.sql @@ -36,7 +36,7 @@ SELECT (7 + 8) * 9; -- answer: 135 SELECT 3 ^ 3 - 1; -- answer: 26 SELECT 3 ^ (3 - 1); -- answer: 9 --- Listing 6-4: Selecting Census population estimate columns with aliases +-- Listing 6-4: Selecting census population estimate columns with aliases SELECT county_name AS county, state_name AS state, @@ -60,7 +60,7 @@ SELECT county_name AS county, FROM us_counties_pop_est_2019 ORDER BY state_name, county_name; --- Listing 6-6: Checking Census data totals +-- Listing 6-6: Checking census data totals SELECT county_name AS county, state_name AS state, @@ -104,7 +104,7 @@ SELECT department, spend_2019, spend_2022, round( (spend_2022 - spend_2019) / - spend_2019 * 100, 1 ) AS pct_change + spend_2019 * 100, 1) AS pct_change FROM percent_change; -- Listing 6-9: Using the sum() and avg() aggregate functions diff --git a/Try_It_Yourself/Try_It_Yourself.sql b/Try_It_Yourself/Try_It_Yourself.sql index 9b22db9..044ed7b 100644 --- a/Try_It_Yourself/Try_It_Yourself.sql +++ b/Try_It_Yourself/Try_It_Yourself.sql @@ -167,7 +167,7 @@ SELECT CAST('4//2021' AS timestamp with time zone); ---------------------------------------------------------------------------- -- 1. Write a WITH statement to include with COPY to handle the import of an --- imaginary text file that has a first couple of rows that look like this: +-- imaginary text file whose first couple of rows look like this: id:movie:actor 50:#Mission: Impossible#:Tom Cruise