题目内容

从Student表中选取年龄最大的五名男同学的方法是:

A. SELECT StudentName AS '姓名', YEAR(Birth) AS '年龄'FROMStudentWHERE (Sex = '男')ORDER BY '年龄'
B. SELECT StudentName AS '姓名', 2021 - YEAR(Birth) AS '年龄'FROMStudentWHERE (Sex = '男')ORDER BY '年龄'
C. SELECT TOP (5) StudentName AS '姓名', 2021 - YEAR(Birth) AS '年龄'FROMStudentWHERE (Sex = '男')ORDER BY '年龄'
D. SELECT TOP (5) StudentName AS '姓名', 2021 - YEAR(Birth) AS '年龄'FROMStudentWHERE (Sex = '男')ORDER BY '年龄' DESC

查看答案
更多问题

从教师表Teacher中找到所有老师姓名(一个姓名只能出现一次):SELECT ____________________FROM Teacher建议使用全大写字母回答

在Grade表中查找课程ID为Dp010001,考试成绩最高的前五名同学的方法是:SELECT TOP _________ StudentID,GradeFROM GradeWHERE CourseID = '_________'ORDER BY Grade __________

从成绩表Grade中查询,在2009年考过试的课程ID有哪些的方法是?SELECT __________ CourseIDFROM GradeWHERE __________ = '2009'

在Student表中的所有学生信息,先对每个班级按班号排列,再对每个班按学号排列的方法是:

A. SELECT *FROM StudentORDER BY ClassID ASC,StudentID ASC
B. SELECT *FROM StudentORDER BY ClassID ,StudentID ASC
C. SELECT *FROM StudentORDER BY ClassID ASC,StudentID
D. SELECT *FROM StudentORDER BY ClassID ,StudentID

答案查题题库