Merge branch 'dev' of github.com:fleetside72/forecast_api into dev
This commit is contained in:
commit
ae0cca3b8a
15
route_sql/list_changes_table.sql
Normal file
15
route_sql/list_changes_table.sql
Normal 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
|
Loading…
Reference in New Issue
Block a user