add sql for a regular table output of changes

This commit is contained in:
Paul Trowbridge 2019-03-23 10:25:58 -05:00
parent 1f9623e026
commit 5534273f2e

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