Consider four classes of students
Class A-Who take only CS courses and no student here has taken even a single EC course.
Class B-WHo Take only EC courses
Class C-Who take Some Cs course and Some EC course both at same time.
Class D-Who have taken some cs courses and all ec courses.
Final result set will include only students from class A.