From 66cb60a0fa91e82b0e843270c6e56b87d009c40f Mon Sep 17 00:00:00 2001 From: Trowbridge Date: Wed, 6 Mar 2019 06:34:24 -0500 Subject: [PATCH] sync up sample sql with route sql --- route_meta/addmonth_vd.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/route_meta/addmonth_vd.sql b/route_meta/addmonth_vd.sql index f7ce8c1..54a4a3e 100644 --- a/route_meta/addmonth_vd.sql +++ b/route_meta/addmonth_vd.sql @@ -438,6 +438,7 @@ WHERE , ins AS ( INSERT INTO rlarp.osm_fcpool SELECT * FROM final RETURNING * ) +,insagg AS ( SELECT bill_cust_descr ,billto_group @@ -503,4 +504,5 @@ GROUP BY ,promo ,version ,iter - +) +SELECT json_agg(row_to_json(insagg)) x from insagg \ No newline at end of file