I have a table with datetime fields start and end. And I have a list of (start, end) items. I need to check which items from the list overlap with data in the table.
The current query looks like this:
I have a Postgres table containing the following three columns:
origin (INT, b tree index)
destination (INT, b tree index)
minutes (SMALLINT, b tree index)
The table has ~ 1.4 billion rows. Each row ...
I have been given a list of values that may or may not be found in a table's column. I just need the subset of the list that is NOT found in a SELECT query.
Pretending that the list I was given is: '...