From 2b26c5ad644b224542dc07554572ae672d80fd73 Mon Sep 17 00:00:00 2001 From: Michelle Ho Date: Mon, 24 Jul 2017 13:13:22 -0400 Subject: [PATCH] fixing parentheses for obs_getdata with ids --- doc/measures_functions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/measures_functions.md b/doc/measures_functions.md index f42fb09..88794e4 100644 --- a/doc/measures_functions.md +++ b/doc/measures_functions.md @@ -465,7 +465,7 @@ WITH meta AS ( '[{"numer_id": "us.census.acs.B01003001", "geom_id": "us.census.tiger.county"}]' ) meta FROM tablename) SELECT id AS fips, (data->0->>'value')::Numeric AS pop_density -FROM OBS_GetData((SELECT ARRAY_AGG((fips) FROM tablename), +FROM OBS_GetData((SELECT ARRAY_AGG(fips) FROM tablename), (SELECT meta FROM meta)) ``` @@ -481,7 +481,7 @@ WITH meta AS ( ) meta FROM tablename), data as ( SELECT id AS fips, (data->0->>'value') AS pop_density - FROM OBS_GetData((SELECT ARRAY_AGG((fips) FROM tablename), + FROM OBS_GetData((SELECT ARRAY_AGG(fips) FROM tablename), (SELECT meta FROM meta))) UPDATE tablename SET pop_density = data.pop_density