I am not sure on how to do this.
I have three tables members table with 238871 members
jobs table with 7713 entries
trade table and with 231142 entries
if i take 238871 members minus what is in the trade table i get a difference of 7729. in the jobs table I have 7713 entries so there are 16 unaccounted for in the members table. all of trade is in jobs and members tables. but in members there a 16 that is not in jobs and trade.
How can I define those 16 members?
thanks
Actually, a
left joingives you everything injobsortedusers. Then everything inmembersthat is also injobsortedusers.It sounds like you either want to reverse the order of your left outer join and do this instead:
This gets you everything in
membersand then everything injobsortedusersthat is also inmembers. As you say that every user is also a member this query returns you everything.I can highly recommend reading this, which explains joins very well.
To answer your new question you want everything where the
jobsortedusersid is null, i.e.I don’t know what to join
tradeon but in order to get everything that is not in either this table or your users table you need something like this: