Merge branch 'dev' of github.com:fleetside72/forecast_api into dev

This commit is contained in:
Paul Trowbridge 2019-03-23 17:17:57 -04:00
commit ae0cca3b8a

View File

@ -0,0 +1,15 @@
SELECT
iterdef->>'user' "user",
iterdef->>'stamp' "stamp",
iterdef->>'mesasage' "comment",
round(SUM(fb_val_loc * r_rate)::numeric,2) sales,
jsonb_pretty(iterdef) def
FROM
rlarp.osm_fcpool
WHERE
iterdef IS NOT NULL
GROUP BY
iterdef->>'user',
iterdef->>'stamp',
iterdef->>'message',
iterdef