add some sql and get rid of node mudule file
This commit is contained in:
parent
53346cfd31
commit
d422305b5d
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@ npm-debug.log
|
||||
*.swp
|
||||
/node_modules
|
||||
.env
|
||||
/.vscode
|
32
SQL/blend.sql
Normal file
32
SQL/blend.sql
Normal 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
15
SQL/list_months.sql
Normal 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
1
node_modules/.bin/mime
generated
vendored
@ -1 +0,0 @@
|
||||
../mime/cli.js
|
Loading…
Reference in New Issue
Block a user