I am trying to compare two columns from two databases, and create a list of users that are missing from the second table.
This is what I have, and of course it gives me an error. Does anyone have any suggestions?
Thanks.
SELECT UserId FROM db1.users
NOT IN
(SELECT UserId FROM db2.users)