Ok, one of the accounting people screwed up and sent last week's data (that had already processed!) with this week's data to be billed. So, I'm trying to figure out which records are doubled up, but :
select name, ssn, detailcode, amount from Output where processdate > '2002-03-06'
and not exists
(select name,ssn, detailcode, amount
from Output where processdate > '2002-02-26' and processdate < '2002-03-06')
... doesn't return any differences. Does WHERE NOT EXISTS check all columns, or just those SELECTED for? Is there a better way to do this?
__________________________________
"This is our Stretchy-Relativistic-Ruler -- it allows us to read a moving measurement from a fixed point accurately during space contraction... How fast can you run down the hall?" -- Overheard Physics Professor at the University of Oregon
select name, ssn, detailcode, amount from Output where processdate > '2002-03-06'
and not exists
(select name,ssn, detailcode, amount
from Output where processdate > '2002-02-26' and processdate < '2002-03-06')
... doesn't return any differences. Does WHERE NOT EXISTS check all columns, or just those SELECTED for? Is there a better way to do this?
__________________________________
"This is our Stretchy-Relativistic-Ruler -- it allows us to read a moving measurement from a fixed point accurately during space contraction... How fast can you run down the hall?" -- Overheard Physics Professor at the University of Oregon