some time has passed since I used SQL, so I apologize if this is too easy. I have to select all the skills that the user has, so I have three tables.
User (id, name) Skills (id, name) User_skills (id_user, id_skill)
If user1 has 2 skills; for example, Hibernate (id 1 ) and Java (id 2 ) and user2 have 1 skill; Java (id 1 )
By passing 1 and 2 , I want to get users who have both.
Using the IN () function, I get all users who have at least one of the skills, but I want to filter them out!
Thank you all in advance
ianaz source share