add some sql and get rid of node mudule file

This commit is contained in:
Trowbridge 2019-02-27 13:25:57 -05:00
parent 53346cfd31
commit d422305b5d
4 changed files with 49 additions and 2 deletions

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
npm-debug.log
*.swp
/node_modules
.env
.env
/.vscode

32
SQL/blend.sql Normal file
View File

@ -0,0 +1,32 @@
SELECT
version
,bill_cust
,ship_cust
,part
,promo
,terms
,plnt
,r_currency
,c_currency
,requestdate - orderdate rdiff
,shipdate - requestdate sdiff
,sum(fb_qty) fb_qty
,sum(fb_val_loc) fb_val_loc
,sum(fb_cst_loc) fb_cst_loc
FROM
rlarp.osm
WHERE
AND calc_status <> 'CANCELED'
GROUP BY
version
,bill_cust
,ship_cust
,part
,promo
,terms
,plnt
,r_currency
,c_currency
,requestdate - orderdate
,shipdate - requestdate

15
SQL/list_months.sql Normal file
View File

@ -0,0 +1,15 @@
SELECT
oseas
,extract('month' from odate) month
,sum(fb_qty) fb_qty
,sum(fb_val_loc) fb_val_loc
,sum(fb_cst_loc) fb_cst_loc
FROM
rlarp.osm_ppfa_varto_mv
WHERE
AND calc_status <> 'CANCELED'
GROUP BY
oseas
,extract('month' from odate)

1
node_modules/.bin/mime generated vendored
View File

@ -1 +0,0 @@
../mime/cli.js