I think I am going the right way with this ... Please bear with me, as my SQL is not the biggest
I am trying to query a database to select everything from one table where certain cells do not exist in another. It doesnβt make much sense, but I hope this piece of code will be
SELECT * from employees WHERE NOT EXISTS (SELECT name FROM eotm_dyn)
So basically I have one table with a list of employees and their details. Then another table with some other details, including their name. If the name is not in the eotm_dyn table, that is, there is no record for them, I would like to indicate exactly who they are, or, in other words, see what exactly is missing.
The above query returns nothing, but I know that there are 20-digit names, so I obviously did not get it right.
Can anyone help?
mysql
Ciaran May 27 '09 at 13:17 2009-05-27 13:17
source share