STEPS to Resolve a problem:
I am: (No this isn't a Lotus Notes R5 commerical)
If you're new to SQL: I find the venn diagram approach very useful. It's by no means 100% accurate. Relationships and set based are similar; but not the same. See Say no to venn diagrams when explaining joins as to why.
For those needing to ask a question consider talking to the duck first. Yes, I'm serious.
To generate a nice table data for question
For those proffering a solution be sure to Test it or perhaps Demo the Question!
Now, to inject some humor:
[SELECT userID
FROM users
WHERE Name = 'Robert');Drop table students;
--Little bobby tables we call him.]
(http://xkcd.com/327/)
I (not so recently) found an exchange in comments humorous:
@xQbert -- this shall henceforth be referred to as "xQbert's razor"
And because I'm lazy you may see this in several of my comments to help new members:
SO is a great site to ask GOOD questions and get answers: Just be sure to provide a complete MCVE. Before you ask a question consider talking to the duck first. Yes, I'm serious! To help us help you, generate sample data and expected results. ascii table makes the output easy to read! You could also mock up data and the SQL tried using http://dbfiddle.uk or a similar site.