migrate
This commit is contained in:
parent
baadaaef8d
commit
0301883d49
@ -1 +1,14 @@
|
||||
copy (select r.* from tps.trans join lateral jsonb_populate_record(null::tps.dcard, rec) r on true where srce = 'DCARD') to 'C:\users\fleet\downloads\dcard.csv' with (format csv, header true);
|
||||
copy (
|
||||
select
|
||||
to_char(r."Trans. Date",'mm/dd/yyyy') "Trans. Date"
|
||||
,to_char(r."Post Date",'mm/dd/yyyy') "Post Date"
|
||||
,r."Description"
|
||||
,r."Amount"
|
||||
,r."Category"
|
||||
from
|
||||
tps.trans
|
||||
join lateral jsonb_populate_record(null::tps.dcard, rec) r on true
|
||||
where
|
||||
srce = 'DCARD'
|
||||
) to
|
||||
'C:\users\fleet\downloads\dcard.csv' with (format csv, header true);
|
8
reports/dcard_bal.sql
Normal file
8
reports/dcard_bal.sql
Normal file
@ -0,0 +1,8 @@
|
||||
\timing
|
||||
SELECT
|
||||
r.*
|
||||
,SUM(r."Amount") OVER (ORDER BY r."Post Date" asc , r."Description") + 1061.1 + 22.40 balance
|
||||
FROM
|
||||
tpsv.dcard_default r
|
||||
ORDER BY
|
||||
r."Post Date" asc
|
@ -1 +1 @@
|
||||
curl -v -F upload=@//mnt/c/Users/fleet/Downloads/dcard.csv http://localhost:81/import?srce=dcard
|
||||
curl -v -F upload=@//mnt/c/Users/fleet/Downloads/DFS-Search-20180529.csv http://localhost:81/import?srce=dcard
|
Loading…
Reference in New Issue
Block a user