I have a user table and a table of things that they have on the list -
to show all users that have items in the list, I can join the two tables users and user_lists on user_id
eg.
select u.emailaddr, u.name from users u join user_lists uw where u.user_id=uw.user_id group by u.name
QUESTION: How to show all users who DO NOT have items in the list - to say it differently, I need a list of users who do not have an entry in the user_lists table
I tried this, but it ran endlessly
select u.emailaddr, u.name from users u join user_lists uw where u.user_id<>uw.user_id group by u.name
Darren sweeney
source share