16 lines
334 B
MySQL
16 lines
334 B
MySQL
|
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
|