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 (