Hi PP
I'm not 100% I understand what you're doing in your query. But in general terms, can you not use a condition to filter them out? Either on the date it's coming in or the derived values you're using? For example, you could have a condition that says Date of arrival > Today . That would be for an extract.
For updates, you could use an IF on the derived day to arrival and skip it if it's 0 or less than 0 or whatever your business rules are.
Best Regards,
Sigrid
------------------------------
Sigrid Kok
PSE | Winshuttle NA
------------------------------