1.
  select stu.name from STUDENT stu left join STUDENT_CLASS sc on stu.id=sc.stuent_id where  EXISTS (select null from CLASS class where class.id=sc.class_id) group by stu.name2.
  select stu.name from STUDENT stu where exists(select null from STUDENT_CLASS sc where sc.stuent_id =stu.id and exists (select null from CLASS class where class.id=sc.class_id) )
由于数据库数据不够多,所以time难以比较,哪位大虾帮忙分析一下哈??对“join”理解的不是很透。。