I have two tables one storing user skills another storing skills required for a job. I want to match how many skills a of each user matches with a job. The table structure is
Table1: User_Skills | ID | User_ID | Skill | --------------------------- | 1 | 1 | .Net | --------------------------- | 2 | 1 | Software| --------------------------- | 3 | 1 | Engineer| --------------------------- | 4 | 2 | .Net | --------------------------- | 5 | 2 | Software| --------------------------- Table2: Job_Skills_Requirement | ID | Job_ID | Skill | -------------------------- | 1 | 1 | .Net | --------------------------- | 2 | 1 | Engineer| --------------------------- | 3 | 1 | HTML | --------------------------- | 4 | 2 | Software| --------------------------- | 5 | 2 | HTML | --------------------------- I was trying to have comma separated skills and compare but these can be in different order.
Edit All the answers here are excellent. The result I am looking for is matching all jobs with all users as later on I will match other properties as well.