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.
the design of your table is not well normalized. The type of relationship is
Many-to-Manyand in this case, this should be three tables,Users,Skillsand the linking tableUser_Skills.A suggested design would be:
Table
UserTable
SkillsTable
User_Skills