In article <4E116E11.1030209@xxxxxxxxx>, Daron Ryan <daron.ryan@xxxxxxxxx> writes: > Hello David, > This is a simplified version of my own attempt: > SELECT * > FROM ("oxford", "webster") > WHERE NOT ( columnName = ANY (SELECT name FROM dictionaries)) > The idea is that "oxford" and "webster" come from the Java program end up > in the column called columnName. If the list is not very long, you could use a VALUES expression: SELECT g.x FROM (VALUES ('oxford'), ('webster')) AS g(x) WHERE g.x NOT IN (SELECT name FROM dictionaries) -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general