Can anyone tell me if there is a volume limit on using NOT IN?I use it on a table with 3782 rows and it does not work.If I make a copy of the table with 3782 rows and delete 3700 of the rows NOT IN works.I'm trying to find missing datesdeclare @bd datetimedeclare @ed datetimeSet @bd ='20080906'Set @ed ='20080910'DECLARE @tempTable table (D datetime)While @bd<=@edBeginInsert @tempTable (D) Values(@bd)Set @bd=dateadd(day,1,@bd)EndSELECT D FROM @tempTablewhere D NOT IN( select shortDate from weighttblCOPY)