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 8559853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:08:57+00:00 2026-06-11T16:08:57+00:00

I am having issues figuring out how to do this. This isnt the real

  • 0

I am having issues figuring out how to do this. This isnt the real problem, but something very similar.

I have table A

ID  Name
10  Bob
11  Tom
12  Suzie
13  Billy
14  Rob
15  Ben

Then table B, where B_ID references to ID in table A

B_ID  Value
11    1500
13    2600

Then Table C where C_ID references to ID in table A

C_ID MatchedWith
10   11
12   13
14   11
15   11

The intention of this query is to list the Names of the people in table B, and how many people that are matched with them from C

…So the resulting query would give something like:

Name  Count
Tom   3
Bily  1

I am completely boggled on how to do this, so any help would be super! thank you!

  • 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-11T16:08:59+00:00Added an answer on June 11, 2026 at 4:08 pm
    SELECT 
        A.Name,
        COUNT(*) as 'Count'
    FROM 
        C
        JOIN B
        ON C.MatchedWith = B.B_ID
        JOIN A
        ON A.ID = B.B_ID
    GROUP BY A.Name
    ORDER BY Count DESC;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having issues figuring out what this issue is. I have googled around
I've been assigned the following problem, but am having issues figuring it out. I
I am having some problems figuring out this issue. I have a server that
I'm very new to Tomcat and I'm having some issues figuring out how to
I'm having trouble figuring out how to solve this issue. I have a file
I am having issues figuring out if this is possible. Any pointers would be
I'm very new to jQuery and having some issues figuring out stuff here :)
I'm having some problems figuring out a solution to this problem. I want to
I am having trouble figuring out where my issue with this code is. My
Still having issues with this problem. Please help if you can. So I am

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.