exclude old orders where copying everything forward
This commit is contained in:
parent
ae9bba67bd
commit
270409895c
@ -557,6 +557,8 @@ FROM
|
||||
baseline o
|
||||
LEFT OUTER JOIN gld ON
|
||||
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
|
||||
SELECT * FROM incr
|
||||
|
Loading…
Reference in New Issue
Block a user