This is a canonical question on how to perform a relational-division using a RDBMS as a result of this discussion on Meta. If you need to add more informations, please do not post new answer, but instead edit the community wiki answer.
Consider this table:
| student | course |
+---------+---------+
| Adam | Math |
| Adam | Science |
| John | Math |
| John | Science |
| Jane | Math |
| Jane | Physics |
I want to pull all students who are taking both math and science. This means Adam and John should be returned.