Hello, I have a table with students from 4 courses and two different departments (Math 101, Math 102, English 201, English 202). I want to select students from Math 101, and English 201 if they've had it and English 202 if they've had it or both if they've had them both.
Edit:
StudentID | Dept | CrsNum 12345 MS 101 99999 MS 102 10000 EH 201 56789 EH 201 12345 EH 201 12345 EH 202
Ideally, the query result would show the student 12345 with all courses he has been in since he is the only one who has been in both MS 101 and both of the EH courses.