a2.sql 234 B

1234567
  1. select sname, snum from student where year = 2 and snum in
  2. (
  3. select snum from mark where grade < 65 and deptcode in
  4. (
  5. select deptcode from department where deptname = "computer science"
  6. ) having count(distinct section) > 1
  7. )