change the baseline version names
This commit is contained in:
parent
e12a96df2e
commit
6d2cacb726
@ -5,7 +5,7 @@ setup
|
|||||||
the basic assumption is a single sales table is available to work with that has a lot of related data that came from master data tables originally.
|
the basic assumption is a single sales table is available to work with that has a lot of related data that came from master data tables originally.
|
||||||
the goal then is to break that back apart to whatever degree is necessary.
|
the goal then is to break that back apart to whatever degree is necessary.
|
||||||
|
|
||||||
* _**run**_ schema.sql and perd.sql to setup basic tables
|
* _**run**_ `schema.sql` and `perd.sql` to setup basic tables
|
||||||
* create a table fc.live as copied from target
|
* create a table fc.live as copied from target
|
||||||
* _**run**_ `target_info.sql` to populate the `fc.target_meta` table that holds all the columns and their roles
|
* _**run**_ `target_info.sql` to populate the `fc.target_meta` table that holds all the columns and their roles
|
||||||
* fill in flags on table `fc.target_meta` to show how the data is related
|
* fill in flags on table `fc.target_meta` to show how the data is related
|
||||||
|
@ -2,7 +2,7 @@ WITH
|
|||||||
baseline AS (
|
baseline AS (
|
||||||
-----------------------copy YTD sales---------------------------------------------------------------------
|
-----------------------copy YTD sales---------------------------------------------------------------------
|
||||||
SELECT
|
SELECT
|
||||||
,'15mo' "version"
|
,'baseline' "version"
|
||||||
,'actuals' iter
|
,'actuals' iter
|
||||||
FROM
|
FROM
|
||||||
rlarp.osm_dev o
|
rlarp.osm_dev o
|
||||||
@ -27,8 +27,8 @@ baseline AS (
|
|||||||
UNION ALL
|
UNION ALL
|
||||||
---------option 1: fill in the rest of the year, with the prior years sales-sales----------------------------
|
---------option 1: fill in the rest of the year, with the prior years sales-sales----------------------------
|
||||||
SELECT
|
SELECT
|
||||||
,'actuals' "version"
|
,'baseline' "version"
|
||||||
,'actuals_plug' iter
|
,'plug' iter
|
||||||
FROM
|
FROM
|
||||||
rlarp.osm_dev o
|
rlarp.osm_dev o
|
||||||
LEFT OUTER JOIN gld ON
|
LEFT OUTER JOIN gld ON
|
||||||
@ -44,8 +44,8 @@ baseline AS (
|
|||||||
UNION ALL
|
UNION ALL
|
||||||
--------option 2: fill in the remainder of the current year with current forecase-----------------------------
|
--------option 2: fill in the remainder of the current year with current forecase-----------------------------
|
||||||
SELECT
|
SELECT
|
||||||
,'actuals' "version"
|
,'baseline' "version"
|
||||||
,'forecast_plug' iter
|
,'plug' iter
|
||||||
FROM
|
FROM
|
||||||
rlarp.osmp_dev o
|
rlarp.osmp_dev o
|
||||||
LEFT OUTER JOIN gld ON
|
LEFT OUTER JOIN gld ON
|
||||||
@ -69,7 +69,7 @@ SELECT
|
|||||||
,o.rseas + 1 --incremented
|
,o.rseas + 1 --incremented
|
||||||
,o.sdate + interval '1 year' --incremented
|
,o.sdate + interval '1 year' --incremented
|
||||||
,o.sseas + 1 --incremented
|
,o.sseas + 1 --incremented
|
||||||
,'b21' "version"
|
,'baseline' "version"
|
||||||
,'copy' iter
|
,'copy' iter
|
||||||
FROM
|
FROM
|
||||||
baseline o
|
baseline o
|
||||||
|
Loading…
Reference in New Issue
Block a user