I am trying to select all the records in a table that DO NOT have a matching record in a second table. I hope this makes sense. Here is my query:
SELECT * FROM table1 WHERE table1.ID NOT IN(SELECT ID FROM table2);
Does anyone see what I might be doing wrong or have a better way of doing this?
Thanks!
sshelby1
SELECT * FROM table1 WHERE table1.ID NOT IN(SELECT ID FROM table2);
Does anyone see what I might be doing wrong or have a better way of doing this?
Thanks!
sshelby1