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;