I want to query such that I get the resumeid where the skillName is jsp and the skill duration is > 10 and the skill name is oracle and skillDuration is > 15.
While I was using oracle, the sql query that worked was
SELECT ResumeId from candidateSkills where skillName = 'jsp' AND skillDuration > 10 INTERSECT SELECT ResumeId from candidateSkills where skillName = 'oracle' AND skillDuration > 15
The output was [1, 2]
But, I see that mysql does not support intersect. How do I go about ? Please advice.
Jeanne Boyarsky, Thanks for the reply. But to my understanding on using the or operator I would get a result even if one condition i.e with one skill name and skill duration is satisfied. But I need a result which would return the resumeid thta would have both the skillnames and their respective durations