select sku,itemTitle,vendorID,UPC from portal_orders where purchaseDate<='2012-11-13' and sku not in (select sku from portal_orders where purchaseDate<='2012-12-13' and purchaseDate>='2012-11-13' group by sku)and vendorID=$where2 limit 5
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)