Chapter 6 minor formatting
This commit is contained in:
parent
e859e4dee0
commit
a7e51bbb39
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user