I have one table, we'll call it BUS
and it has two columns called DATE
and TAG
I want to do two finds, as shown below
Query 1
select *
from BUS
where DATE < '2009-03-01'
&
Query 2
select *
from BUS
where DATE >= '2009-03-01'
I want to compare these two found sets, and delete any rows where the TAG
from query 1 equals the TAG
from query 2.
I tried an INTERSECT but I don't think that's the correct way. I can't wrap my head around this kind of query. Any advice?