-
(problem solved)...never mind
Does anyone know how to write the following SQL query to be compatible with mySQL?
SELECT table1.* FROM table1 WHERE NOT table1.primaryid IN (SELECT table2.primaryid FROM table2)
Thanks!
Last edited by msyKYLE; Jan 8, 2003 at 13:43.
-
Found my answer....
SELECT table1.* FROM table1 LEFT JOIN table2 ON table1.id=table2.id WHERE table2.id IS NULL;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks