I’m trying to display a list of items that do not already exist in another table. For instance:
usertable:
uid
name
email
othertable:
uid
I’m trying to filter out users that already exist in the other table, so when I display the usertable, it will only show users that are not in the othertable.
NOT EXIST in mysql is completely another thing from what you want to do. UPDATE: This is not true! (thanks for pointing out)
I understand you want to select all records that are in usertable but not in othertable, right?
UPDATE In case you want to check all the fields in the row, not only the ID, you can use something like: