They have two tables:
wes - contains 8000 rows, with 2000 distinct masternames (mastername is a column in wes)
wem - contains 2100 rows, with 2100 distinct names (name is a column in wem)
I am trying to get names that exist in wem, but not like masternames in wes:
SELECT name FROM wem WHERE name NOT IN (SELECT DISTINCT mastername FROM wes)
But for some reason, my query does not return any strings, even if there are ~ 100 names in wem that do not exist as masternames in wes.
Any ideas on what's going wrong?
Thank!
source
share