I can't figure out which JOIN I need to use.
Tables
users - id : admin_level
assigned - user_id : admin_level
Once I assign a user and they are INSERTed into the assigned table, I need to be able to pull up a list of available users that have not been assigned yet.
If I assign user id 1 with admin level 1 and there are still 5 other users with the same admin_level, I want to click Assign again, but only pull up the five that have not been assigned yet.
I've tried things like:
SELECT * FROM users JOIN assigned ON (users.id != assigned.user_id) WHERE admin_level = '1'
and a whole bunch of other garbage like that. I tried some others, but when I emptied the assigned table, the queries would not work no matter what I tried.