I've got two tables, each with a string of ids.
Table B is a subset of Table A.
Table A id values (eg) 1,2,3,4,5,6,7,8,9,10
Table B id values 1,5,7
What's the quickest way of selecting one value in Table A that is NOT present in Table B? I've got a loop setup to query all the values in Table A, then do a select on Table B. If the result is negative the loop breaks and the result is returned. But this is getting CPU intensive since I have thousands of values. Any help would be appreciated.