comments and version name
This commit is contained in:
parent
caa83b8a98
commit
0e3e1205df
@ -495,7 +495,7 @@ gld AS (
|
||||
-----when null, greatest/least is just going to act like coalesce
|
||||
,greatest(least(o.sdate,gld.edat),gld.sdat) sdate
|
||||
,ss.ssyr sseas
|
||||
,'actuals' "version"
|
||||
,'1+11' "version"
|
||||
,'actuals' iter
|
||||
FROM
|
||||
rlarp.osm_dev o
|
||||
@ -551,6 +551,8 @@ gld AS (
|
||||
--forecast as negative and actuals as positive such that
|
||||
--adding the diff to the forecast yields actuals
|
||||
,diff AS (
|
||||
-------------------------------------------------------------------------------------------------
|
||||
----------------------forecast is negative-------------------------------------------------------
|
||||
SELECT
|
||||
-----------documents-------------
|
||||
null::int "ddord#"
|
||||
@ -657,8 +659,8 @@ gld AS (
|
||||
-----when null, greatest/least is just going to act like coalesce
|
||||
,o.sdate
|
||||
,o.sseas
|
||||
,'diff fct' AS version
|
||||
,'diff fct' AS iter
|
||||
,'1+11' AS version
|
||||
,'diff' AS iter
|
||||
FROM
|
||||
forecast_basis o
|
||||
CROSS JOIN tdr
|
||||
@ -699,6 +701,8 @@ gld AS (
|
||||
--,o.version
|
||||
--,o.iter
|
||||
UNION ALL
|
||||
-------------------------------------------------------------------------------------------------
|
||||
----------------------actuals are positive-------------------------------------------------------
|
||||
SELECT
|
||||
-----------documents-------------
|
||||
null::int "ddord#"
|
||||
@ -805,8 +809,8 @@ gld AS (
|
||||
-----when null, greatest/least is just going to act like coalesce
|
||||
,o.sdate
|
||||
,o.sseas
|
||||
,'diff act' AS version
|
||||
,'diff act' AS iter
|
||||
,'1+11' AS version
|
||||
,'diff' AS iter
|
||||
FROM
|
||||
actuals o
|
||||
CROSS JOIN tdr
|
||||
|
Loading…
Reference in New Issue
Block a user