• 回答数

    2

  • 浏览数

    254

茶舞清香
首页 > 英语培训 > 先行课英文

2个回答 默认排序
  • 默认排序
  • 按时间排序

紫童vivi

已采纳

1.查询所有学生的学号、姓名、所在系Select sno,sname,sdeptFrom student2.查询全体学生的学号、姓名、性别,年龄,系别的信息Select *From student3.查询全体学生的姓名及其出生年份Select sname,datadiff(year,sage,2010) as 出生年份From student4.查询信息工程系全体学生的名单Select snameFrom studentWhere sdept=’信息工程系’5.查询所有年龄在20岁以下的学生姓名以及年龄Select sname,sageFrom studentWhere sage<206.查询考试成绩不及格的学生的学号Select snoFrom scoreWhere grade<607.查询年龄在20-25(包括20、25)之间的学生的姓名、系别和年龄Select sname,sdept,sageFrom studentWhere sage>=20 and sage<=258.查询不在软件系、网络系、也不在外语系学生的姓名和性别select sname,sexfrom studentwhere sdept <>'软件系、网络系、外语系'9.查询所有姓李且全名为三个汉字的学生的姓名、学号、和性别select sname,sno,sexfrom studentwhere sname like '李_ _'10.查询姓名中第二个字为'阳'字的学生的姓名select snamefrom studentwhere sname like '_阳%'11.查询信息工程系年龄在20岁以下的学生的姓名select snamefrom studentwhere sage<20 and sdept='信息工程系'12.查询选修了3号课程的学生的学号及其成绩,查询结果按分数的降序排列select sno,gradefrom scorewhere cno='3' order by grade desc13.查询全体学生的学号、姓名等情况,结果按照所在系的升序排序,同一系的按年龄降序排列select sno,snamefrom student order by sdept asc,sage desc14.统计学生总人数select count(*) as 人数from student15.查询选修课课程的学生人数select count(*) as 人数from score16.计算1号课程的学生平均分数select avg(grade) 均分from scorewhere cno='1'17.查询选修了1号课程的学生最高分数select max(grade) 最高分from scorewhere cno='1'18.求各课程号及相应的选修课人数select cno,distinct(sno)from scoregroup by cno19.查询选修了3门以上课程的学生号select snofrom score group by snohaving count(cno)>320.查询选修2学分的课程且该课程的成绩在90分以上的所有学生的姓名select snamefrom student,course,scorewhere student.sno=score.sno and course.cno=score.cno and ccredit=2 and grade>9021.查询每个学生的学号、姓名、选修的课程号和成绩select student.sno,sname,cno,gradefrom student,score,coursewhere student.sno=score.sno and score.cno=course.cno22.查询所有选修了1号课程的学生姓名select snamefrom student,scorewhere student.sno=score.sno and score.cno='1'23.查询选修了课程名为“计算机信息管理”的学生的学号和姓名select sno,snamefrom student,course,scorewhere student.sno=score.sno and course.cno=score.cnoand cname='计算机信息管理'希望能给你帮助

先行课英文

312 评论(13)

虾球麻麻

是的,同时也叫先修课程。

121 评论(8)

相关问答