exclude old orders where copying everything forward
This commit is contained in:
parent
ae9bba67bd
commit
270409895c
@ -557,6 +557,8 @@ FROM
|
|||||||
baseline o
|
baseline o
|
||||||
LEFT OUTER JOIN gld ON
|
LEFT OUTER JOIN gld ON
|
||||||
o.sdate + interval '1 year' BETWEEN gld.sdat and gld.edat
|
o.sdate + interval '1 year' BETWEEN gld.sdat and gld.edat
|
||||||
|
WHERE
|
||||||
|
o.odate + interval '1 year' >= '2020-06-01'
|
||||||
)
|
)
|
||||||
INSERT INTO rlarp.osmf_dev
|
INSERT INTO rlarp.osmf_dev
|
||||||
SELECT * FROM incr
|
SELECT * FROM incr
|
||||||
|
Loading…
Reference in New Issue
Block a user