I have a bit of an issue with the following query.
SELECT su.display_name, su.user_email, sm.meta_value FROM system_users AS su
JOIN system_usermeta AS sm ON su.ID = sm.user_id
WHERE sm.meta_key = 'market';
The above query works fine to show all users and their values who have 'market' set in the meta_key column.
But how can I turn this around? How could I show all the users which don't have the meta_key 'market' associated with their user_ID.