list out columns
This commit is contained in:
parent
6556cce5c6
commit
de2aac8d23
@ -1,8 +1,12 @@
|
|||||||
\timing
|
\timing
|
||||||
SELECT
|
SELECT
|
||||||
r.*,
|
r."Trans. Date",
|
||||||
rec->'id',
|
r."Post Date",
|
||||||
SUM(r."Amount") OVER (PARTITION BY srce ORDER BY r."Post Date" asc , rec->>'id' asc, r."Description") + 1061.1 + 22.40
|
r."Description",
|
||||||
|
r."Amount",
|
||||||
|
r."Category",
|
||||||
|
rec->'id' id,
|
||||||
|
SUM(r."Amount") OVER (PARTITION BY srce ORDER BY r."Post Date" asc , rec->>'id' asc, r."Description") + 1061.1 + 22.40 balance
|
||||||
FROM
|
FROM
|
||||||
tps.trans
|
tps.trans
|
||||||
LEFT JOIN LATERAL jsonb_populate_record(null::tps.dcard, rec) r ON TRUE
|
LEFT JOIN LATERAL jsonb_populate_record(null::tps.dcard, rec) r ON TRUE
|
||||||
|
Loading…
Reference in New Issue
Block a user