From 6e8f026770f5c0e5dab7ea2d1b851f8a79b0c133 Mon Sep 17 00:00:00 2001 From: pt Date: Fri, 14 Feb 2020 00:15:11 -0500 Subject: [PATCH] forgot to swap out alias --- route_sql/new_basket.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/route_sql/new_basket.sql b/route_sql/new_basket.sql index 9a29b4f..7c748e3 100644 --- a/route_sql/new_basket.sql +++ b/route_sql/new_basket.sql @@ -254,9 +254,9 @@ SELECT LEFT OUTER JOIN gld od ON od.drange @> make_date(mxm.yr + 2021,mxm.cal,mxm.odom) 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 - 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 ,log AS (