Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL Select
You could try this:
SELECT StudentID FROM taken
WHERE ClassTitle='CS101'
INTERSECT
SELECT StudentID FROM taken
WHERE ClassTitle='CS200'
INTERSECT
SELECT StudentID FROM taken
WHERE ClassTitle='CS300';
Or you could use a triple self-join of the TAKEN table.
Hope this helps.
Michael Serbanescu
![]() |
![]() |