forgot to swap out alias

This commit is contained in:
pt 2020-02-14 00:15:11 -05:00
parent 8aeecc845b
commit 6e8f026770

View File

@ -254,9 +254,9 @@ SELECT
LEFT OUTER JOIN gld od ON LEFT OUTER JOIN gld od ON
od.drange @> make_date(mxm.yr + 2021,mxm.cal,mxm.odom) od.drange @> make_date(mxm.yr + 2021,mxm.cal,mxm.odom)
LEFT OUTER JOIN gld rd ON LEFT OUTER JOIN gld rd ON
od.drange @> (make_date(mxm.yr + 2021,mxm.cal,mxm.odom) + rlag) rd.drange @> (make_date(mxm.yr + 2021,mxm.cal,mxm.odom) + rlag)
LEFT OUTER JOIN gld sd ON LEFT OUTER JOIN gld sd ON
od.drange @> (make_date(mxm.yr + 2021,mxm.cal,mxm.odom) + rlag + slag) sd.drange @> (make_date(mxm.yr + 2021,mxm.cal,mxm.odom) + rlag + slag)
) )
--SELECT * FROM basemix --SELECT * FROM basemix
,log AS ( ,log AS (