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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:39:34+00:00 2026-06-18T03:39:34+00:00

I have 2 tables such as below: Table 1 contain UserID and Name while

  • 0

I have 2 tables such as below:

Table 1 contain UserID and Name while table 2 contain UserID, Skill_ID, and SkillName

What I want to do is, I want to search someone who has 2 skill, searched via SkillName.

example: I have Andy as Name where he have 2 skill PHP and C# so when i Search PHP & C#, Andy will be shown as result.

Can anybody help me? 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-18T03:39:35+00:00Added an answer on June 18, 2026 at 3:39 am
    SELECT a.Name
    FROM    table1 a
            INNER JOIN table2 b
                ON a.userID = b.user_ID
    WHERE   b.skill_name IN ('PHP','C#')
    GROUP   BY a.Name
    HAVING  COUNT(*) = 2
    

    the design of your table is not well normalized. The type of relationship is Many-to-Many and in this case, this should be three tables, Users, Skills and the linking table User_Skills.

    A suggested design would be:

    Table User

    • UserID (PK)
    • Name

    Table Skills

    • SkillID (PK)
    • SkillName

    Table User_Skills

    • UserID (FK)
    • SkillID (FK)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Messages and User models with corresponding tables. The Messages table has such
If I have a table such as: info_name | info_value name | Susan desc
Lets say I have a table with columns such as: ID Name City State
I have a table called source that has multiple derived tables such as account,
I have 2 tables in database:tbleducation,tblemployee.Anyway for table tblemployee, I have fields: employeeID,employeeName....I want
I have such tables in my database like Customer , Member , Instructor ,
I have 3 tables in my database, for example with such names: TableA, TableB,
Let's say you have three tables named Item, Event, and Seat, constructed as such:
I have a table such as: PK_ID LOCATION_ID LOCATION_TEXT 1 21 NULL 2 44
I have a table such as: table a +------+-------+ | v1 | v2 |

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.