I want to find all pairs of diffrent students that are enrolled in two or more sections together from
enroll(sid*, grade, dname*, cno*, sectno*)
where each section is uniquely identified by (dname*, cno*, sectno*)
See Question&Answers more detail:os