put stuff in folders, delete a couple more
This commit is contained in:
parent
de095017b1
commit
4b7a7ee4b7
16
log.md
16
log.md
@ -1,16 +0,0 @@
|
|||||||
## Log of event
|
|
||||||
|
|
||||||
use spreadsheet to build json transactions and dump to a log that links to bank data
|
|
||||||
|
|
||||||
bank
|
|
||||||
binoculars
|
|
||||||
**manicure/pedicure**
|
|
||||||
**necklace**
|
|
||||||
bassinet & baby stuff
|
|
||||||
kids phone
|
|
||||||
dress
|
|
||||||
hanging chair
|
|
||||||
**sunglasses**
|
|
||||||
**footy pajamas**
|
|
||||||
printing calculator
|
|
||||||
cash register
|
|
@ -1,24 +0,0 @@
|
|||||||
\timing
|
|
||||||
/*
|
|
||||||
WITH
|
|
||||||
ext AS (
|
|
||||||
SELECT
|
|
||||||
srce
|
|
||||||
,defn->'unique_constraint'->>'fields'
|
|
||||||
,ARRAY(SELECT ae.e::text[] FROM jsonb_array_elements_text(defn->'unique_constraint'->'fields') ae(e)) text_array
|
|
||||||
FROM
|
|
||||||
tps.srce
|
|
||||||
--add where clause for targeted source
|
|
||||||
)
|
|
||||||
*/
|
|
||||||
|
|
||||||
SELECT COUNT(*) FROM
|
|
||||||
(
|
|
||||||
SELECT DISTINCT
|
|
||||||
t.srce
|
|
||||||
,(SELECT JSONB_OBJECT_agg(ae.e,rec #> ae.e::text[]) FROM jsonb_array_elements_text(defn->'unique_constraint'->'fields') ae(e)) ja
|
|
||||||
FROM
|
|
||||||
tps.trans t
|
|
||||||
INNER JOIN tps.srce s ON
|
|
||||||
s.srce = t.srce
|
|
||||||
) X
|
|
Loading…
Reference in New Issue
Block a user