try to split the queries for the beginning,
how long does it take to select the search values from the second table ?
maybe you could select them into some temporary table and then search from then ?
SELECT PartNumber, Description FROM PartList WHERE PartNumber LIKE %'searchstring'% OR Description LIKE %'searchstring'%
Main Topics
Browse All Topics





by: angelIIIPosted on 2009-10-30 at 02:25:54ID: 25701250
NOT IN ( ) must be 1 field ...
aka:
AND PartNumber NOT IN (SELECT PartNumber FROM PartList ...