put stuff in folders, delete a couple more

This commit is contained in:
Paul Trowbridge 2018-02-05 23:18:27 -05:00
parent de095017b1
commit 4b7a7ee4b7
18 changed files with 0 additions and 40 deletions

16
log.md
View File

@ -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

View File

@ -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