Chapter 6 minor formatting

This commit is contained in:
anthonydb 2020-08-29 15:26:29 -04:00
parent e859e4dee0
commit a7e51bbb39

View File

@ -133,11 +133,11 @@ SELECT sum(pop_est_2019) AS county_sum,
percentile_cont(.5) percentile_cont(.5)
WITHIN GROUP (ORDER BY pop_est_2019) AS county_median WITHIN GROUP (ORDER BY pop_est_2019) AS county_median
FROM us_counties_pop_est_2019; 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() -- Listing 6-12: Passing an array of values to percentile_cont()
-- quartiles -- quartiles
SELECT percentile_cont(array[.25,.5,.75]) SELECT percentile_cont(ARRAY[.25,.5,.75])
WITHIN GROUP (ORDER BY pop_est_2019) AS quartiles WITHIN GROUP (ORDER BY pop_est_2019) AS quartiles
FROM us_counties_pop_est_2019; FROM us_counties_pop_est_2019;