From a7e51bbb3994ac1a0e79fca3409f389ea18ff099 Mon Sep 17 00:00:00 2001 From: anthonydb Date: Sat, 29 Aug 2020 15:26:29 -0400 Subject: [PATCH] Chapter 6 minor formatting --- Chapter_06/Chapter_06.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Chapter_06/Chapter_06.sql b/Chapter_06/Chapter_06.sql index c52b2e9..c154177 100644 --- a/Chapter_06/Chapter_06.sql +++ b/Chapter_06/Chapter_06.sql @@ -133,11 +133,11 @@ SELECT sum(pop_est_2019) AS county_sum, percentile_cont(.5) WITHIN GROUP (ORDER BY pop_est_2019) AS county_median FROM us_counties_pop_est_2019; -select * from us_counties_pop_est_2019 order by pop_est_2019 asc; + -- Listing 6-12: Passing an array of values to percentile_cont() -- quartiles -SELECT percentile_cont(array[.25,.5,.75]) +SELECT percentile_cont(ARRAY[.25,.5,.75]) WITHIN GROUP (ORDER BY pop_est_2019) AS quartiles FROM us_counties_pop_est_2019;