Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8444405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:23:35+00:00 2026-06-10T09:23:35+00:00

I am not sure on how to do this. I have three tables members

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T09:23:36+00:00Added an answer on June 10, 2026 at 9:23 am

    Actually, a left join gives you everything in jobsortedusers. Then everything in members that is also in jobsortedusers.

    It sounds like you either want to reverse the order of your left outer join and do this instead:

    select * 
      from membership.members as mm
      left outer join jobsorted.jobsortedusers as js
        on mm.memberid = js.memberid
    

    This gets you everything in members and then everything in jobsortedusers that is also in members. 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 jobsortedusers id is null, i.e.

    select mm.* -- every other column will be null
      from membership.members as mm
      left outer join jobsorted.jobsortedusers as js
        on mm.memberid = js.memberid
     where js.memberid is null
    

    I don’t know what to join trade on but in order to get everything that is not in either this table or your users table you need something like this:

    select mm.* -- every other column will be null 
      from membership.members as mm
      left outer join jobsorted.jobsortedusers as js
        on mm.memberid = js.memberid
      left outer join trade t
        on mm.memberid = t.memberid
     where js.memberid is null
       and t.memberid is null
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm sure there's a simple answer to this... or not: I have a site
Context I'm trying to have some "plugins" (I'm not sure this is the correct
I'm sure this must have been covered before because I'm sure I'm not the
I'm not sure how difficult this but I have an array and would like
I am not sure if this is possible and every where I have searched,
I am not sure if this was asked before but I have to do
I am not sure whether this only happens to me. Basically if I have
I'm not sure if this is possible (complete non-flash developer speaking), but we have
I'm not sure why this isn't working. I don't have any errors, but what
I'm not totally sure but this looks wrong: I have a header file named

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.