comments and version name

This commit is contained in:
Paul Trowbridge 2021-07-12 15:37:52 -04:00
parent caa83b8a98
commit 0e3e1205df

View File

@ -495,7 +495,7 @@ gld AS (
-----when null, greatest/least is just going to act like coalesce -----when null, greatest/least is just going to act like coalesce
,greatest(least(o.sdate,gld.edat),gld.sdat) sdate ,greatest(least(o.sdate,gld.edat),gld.sdat) sdate
,ss.ssyr sseas ,ss.ssyr sseas
,'actuals' "version" ,'1+11' "version"
,'actuals' iter ,'actuals' iter
FROM FROM
rlarp.osm_dev o rlarp.osm_dev o
@ -551,6 +551,8 @@ gld AS (
--forecast as negative and actuals as positive such that --forecast as negative and actuals as positive such that
--adding the diff to the forecast yields actuals --adding the diff to the forecast yields actuals
,diff AS ( ,diff AS (
-------------------------------------------------------------------------------------------------
----------------------forecast is negative-------------------------------------------------------
SELECT SELECT
-----------documents------------- -----------documents-------------
null::int "ddord#" null::int "ddord#"
@ -657,8 +659,8 @@ gld AS (
-----when null, greatest/least is just going to act like coalesce -----when null, greatest/least is just going to act like coalesce
,o.sdate ,o.sdate
,o.sseas ,o.sseas
,'diff fct' AS version ,'1+11' AS version
,'diff fct' AS iter ,'diff' AS iter
FROM FROM
forecast_basis o forecast_basis o
CROSS JOIN tdr CROSS JOIN tdr
@ -699,6 +701,8 @@ gld AS (
--,o.version --,o.version
--,o.iter --,o.iter
UNION ALL UNION ALL
-------------------------------------------------------------------------------------------------
----------------------actuals are positive-------------------------------------------------------
SELECT SELECT
-----------documents------------- -----------documents-------------
null::int "ddord#" null::int "ddord#"
@ -805,8 +809,8 @@ gld AS (
-----when null, greatest/least is just going to act like coalesce -----when null, greatest/least is just going to act like coalesce
,o.sdate ,o.sdate
,o.sseas ,o.sseas
,'diff act' AS version ,'1+11' AS version
,'diff act' AS iter ,'diff' AS iter
FROM FROM
actuals o actuals o
CROSS JOIN tdr CROSS JOIN tdr