数据库第五六七章作业答案(精品·公开课件).pptVIP

  • 8
  • 0
  • 约6.62千字
  • 约 22页
  • 2018-12-03 发布于广西
  • 举报

数据库第五六七章作业答案(精品·公开课件).ppt

第五章作业 1、查询学生选课表中的全部数据 select * from sc 2、查询计算机系学生的姓名、年龄 select sname,sage from student where sdept=‘计算机系‘ 3、查询成绩在70-80的学生的学号、课程号和成绩 select * from sc where grade between 70 to 80 4、查询计算机系年龄在18-20的男生的姓名、年龄 select sname,sage from student Where sdept=’计算机系’ and sage between 18 to 20 and ssex=‘男’ 5、查询“C01”课程的最高成绩 Select max(grade) from sc where cno=‘c01’ 6、查询计算机系学生的最大年龄和最小年龄 select max(sage),min(sage) from student where sdept=‘计算机系’ 7、统计每个系的学生人数 select sdept,count(*) from student group by sdept 8、统计每门课程的选课人数和考试最高分 select cno,count(*),max(grade) from sc group by cno 9、统

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档