Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I have Table like

name| skills   | area |<br />
________________________<br />
ajay| .net,wcf | hyd  <br />
ram   | java,.net| bang


I want to find who have candidates skills like java,dot in stored procedure
can u guide or end any snippets in front my application i am using textbox for for giving input like java,.net
Posted
v2
Comments
MT_ 22-Nov-12 9:11am    
Why are you reposting the question:
http://www.codeproject.com/Questions/497345/Howplustoplusretriveplustheseplustypeplusofplusdat
?

1 solution

You can do it...but it's not easy, particularly if you don't store skills in any particular order. You can use the LIKE condition to pick up one skill:
SQL
SELECT name FROM myTable WHERE skills LIKE '%.net%'
would pick up both lines, but for multiple skills it's a PITA.

I would change the way you stored skills - have a Skills table, which has a name (".NET", "Java", ...) and an ID, then have a separate table linking the client to a skill (via the client ID). THis way, you can retrieve all those who have multiple skills much, much =more efficiently (And you can't spell "java" as "jova" by mistake when doing data entry and miss some one out for a position)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900