add version and inter, SQL works fine
This commit is contained in:
parent
6166e49a23
commit
b9a2d9d8fc
@ -114,6 +114,8 @@ vscale AS (
|
|||||||
,volume AS (
|
,volume AS (
|
||||||
SELECT
|
SELECT
|
||||||
$$||_clist_vol||$$
|
$$||_clist_vol||$$
|
||||||
|
,'forecast name' AS version
|
||||||
|
,'scale vol' AS iter
|
||||||
FROM
|
FROM
|
||||||
basemix o
|
basemix o
|
||||||
CROSS JOIN vscale
|
CROSS JOIN vscale
|
||||||
@ -145,6 +147,8 @@ FROM
|
|||||||
,pricing AS (
|
,pricing AS (
|
||||||
SELECT
|
SELECT
|
||||||
$$||_clist_prc||$$
|
$$||_clist_prc||$$
|
||||||
|
,'forecast name' AS version
|
||||||
|
,'scale price' AS iter
|
||||||
FROM
|
FROM
|
||||||
volume o
|
volume o
|
||||||
CROSS JOIN pscale
|
CROSS JOIN pscale
|
||||||
@ -153,7 +157,15 @@ WHERE
|
|||||||
)
|
)
|
||||||
INSERT INTO
|
INSERT INTO
|
||||||
fc.live
|
fc.live
|
||||||
SELECT * FROM volume UNION ALL SELECT * FROM pricing
|
SELECT
|
||||||
|
*
|
||||||
|
FROM
|
||||||
|
volume
|
||||||
|
UNION ALL
|
||||||
|
SELECT
|
||||||
|
*
|
||||||
|
FROM
|
||||||
|
pricing
|
||||||
$$
|
$$
|
||||||
INTO
|
INTO
|
||||||
_sql;
|
_sql;
|
||||||
|
@ -236,6 +236,8 @@ SELECT
|
|||||||
,o.rseas
|
,o.rseas
|
||||||
,o.sdate
|
,o.sdate
|
||||||
,o.sseas
|
,o.sseas
|
||||||
|
,'forecast name' AS version
|
||||||
|
,'scale vol' AS iter
|
||||||
FROM
|
FROM
|
||||||
basemix o
|
basemix o
|
||||||
CROSS JOIN vscale
|
CROSS JOIN vscale
|
||||||
@ -367,6 +369,8 @@ SELECT
|
|||||||
,o.rseas
|
,o.rseas
|
||||||
,o.sdate
|
,o.sdate
|
||||||
,o.sseas
|
,o.sseas
|
||||||
|
,'forecast name' AS version
|
||||||
|
,'scale price' AS iter
|
||||||
FROM
|
FROM
|
||||||
volume o
|
volume o
|
||||||
CROSS JOIN pscale
|
CROSS JOIN pscale
|
||||||
@ -375,5 +379,13 @@ WHERE
|
|||||||
)
|
)
|
||||||
INSERT INTO
|
INSERT INTO
|
||||||
fc.live
|
fc.live
|
||||||
SELECT * FROM volume UNION ALL SELECT * FROM pricing
|
SELECT
|
||||||
|
*
|
||||||
|
FROM
|
||||||
|
volume
|
||||||
|
UNION ALL
|
||||||
|
SELECT
|
||||||
|
*
|
||||||
|
FROM
|
||||||
|
pricing
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user