I have a list of usernames
username
abc
xyz
cde
select username from users where username in ('abc','xyz','cde')
return abc
and xyz
How can i get usernames from my list , but not in the database using sql
which will be cde in this case
i tried this , may be am close, not sure
SELECT username
FROM (
VALUES
ROW(‘abc'),
ROW(‘xyz'),
ROW(‘cde') ,
) as usernames (username)
WHERE NOT exists (
SELECT username FROM user where username in (‘abc’,’xyz’,’cde')
)