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

  • Home
  • SEARCH
  • 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 3842916
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T15:51:47+00:00 2026-05-19T15:51:47+00:00

Need help figuring this out. I have two tables user —- name skills (comma

  • 0

Need help figuring this out.

I have two tables

user
----
name
skills (comma separated value of skills;not mapped to next table)

where a users name and his technical skills are stored.

skills
-----
id
language_name

where we store only skills without mapping to anything.

And I have a search form with one textfield where you can input the primary skill :

eg. java javascript html css

Based on the value entered I want to find the best person with the technical skills and also display the person who comes closest to the skills searched.

Any idea how do I go about achieving this. Recommendations for changes in table structures are also welcome.

Note: The best person is the one who has the greatest number of skills in the list.

  • 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-05-19T15:51:48+00:00Added an answer on May 19, 2026 at 3:51 pm

    You can either use a normal normalised tag table for the skills and use SQL, or you can store the skills as a single list and use FREETEXT searching on the single column.

    user       : id; name
    skill      : id; language_name
    user_skill : user_id; skill_id
    

    Every time you encounter a new skill, just create a new entry for it in skill, so “.Net”, “DotNet”, “C#.Net” would appear 3 times.

    When searching for the best match for “java javascript html css”, break that into a list of 4, so the query looks like this

    select top 10 u.name, count(*) matched
    from skill s
    inner join user_skill us on s.skill_id = us.skill_id
    inner join user u on u.user_id = us.user_id
    where s.language_name in ('java','javascript','html','css')
    group by u.name
    order by matched desc
    

    (shows the top 10)

    On SQL Server 2005, with the help of FOR XML, you can also get the list of missing skills per each of the best 10 matching users

    select top(10)
        u.id,
        u.name,
        count(*) matched,
        stuff(
        (
         select ',' + s.language_name
         from skill s
         where s.language_name in ('java','javascript','html','css')
           and not exists (
            select * from user_skill u2
            where u2.user_id=u.id
              and u2.skill_id=s.skill_id)
         for xml path('')
        ),1,1,'') as missing_list
    from skill s
    inner join user_skill us on s.skill_id = us.skill_id
    inner join [user] u on u.user_id = us.user_id
    where s.language_name in ('java','javascript','html','css')
    group by u.id, u.name
    order by matched desc
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Need some php help in figuring out how use this array I created, but
i need help with disk_total_space function.. i have this on my code <?php $sql=select
I need help figuring out how to change out the view in my application.
I need help figuring out these php print (echo) statements and where to place
I need some help figuring out why the following scenario does not work. I'm
I need some help figuring out the best way to proceed with creating a
I need some help figuring out how to make some changes to some .jsp
I need help on this following aspx code aspx Code: <asp:Label ID =lblName runat
I need help with this route map routes.MapRoute(Blog_Archive, Blog/Archive/{year}/{month}/{day}, new { controller = Blog,
I have a regex call that I need help with. I haven't posted my

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.