例31查询信息系选修三门以上课程的学生的学号
select sno from sc where sdept='is' group by sno having count(*)>3
3.3.2连接查询
例32查询每个学生及其选修课的情况
select student.*,sc.* from student,sc where student.sno=sc.sno