OK, the title is confusing but i will explain. Say i have a employee skills db for which i would like managers to be able to search through.
A manager may want to search for employees with nunchuck skills... ok great, thats easy:
SELECT * FROM skilllist
WHERE skillname
= "nunchuck"
Bam! I got a list of employees with nunchuck skills.
But say a manager would like to get a list of employees with both "nunchuck" skills and "bow staff" skills. How would i create a query like that? I cant just say:
SELECT * FROM skilllist
WHERE skillname
= "nunchuck" AND skillname
= "bow staff"
or
SELECT * FROM skilllist
WHERE skillname
= "nunchuck" OR skillname
= "bow staff"
The latter would just return all employees with nunchuck skills and all employees with bow staff skills. I would like to get ONLY employees with both skills. I cant figure it out. Please help! :)