I've got a table A with some data:
name
------
a
b
d
And I've got a list of names ('a', 'b', 'c', 'e'
) from which I would like to get those values that are not in the table. How can I do this? Which options do I have? This is not working (of course):
SELECT value FROM ('a', 'b', 'c', 'e') WHERE value NOT IN (SELECT name FROM A)
In this example the expected result would be:
value
------
c
e