网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下列查询年龄最大的前四个学生(包括并列的情况)的语句,正确的是()。
- A、SELECT TOP 4 WITH TIES * FROM Student ORDER BY Sage ASC
- B、SELECT TOP 4 WITH TIES * FROM Student GROUP BY Sage ASC
- C、SELECT TOP 4 WITH TIES * FROM Student ORDER BY Sage DESC
- D、SELECT TOP 4 WITH TIES * FROM Student GROUP BY Sage DESC
参考答案
更多 “下列查询年龄最大的前四个学生(包括并列的情况)的语句,正确的是()。A、SELECT TOP 4 WITH TIES * FROM Student ORDER BY Sage ASCB、SELECT TOP 4 WITH TIES * FROM Student GROUP BY Sage ASCC、SELECT TOP 4 WITH TIES * FROM Student ORDER BY Sage DESCD、SELECT TOP 4 WITH TIES * FROM Student GROUP BY Sage DESC” 相关考题
考题
要求选出学生中平均成绩最高的人的学号,姓名和平均分,下列语句中正确的是_____A SELECT TOP 1 学号,姓名,平均分 FROM STUDENT,SKB.DBF ORDER BY 平均分B SELECT TOP 1 STUDENT.学号,STUDENT.姓名,AVG(SKB.成绩) AS 平均分FROM STUDENT INNER JOIN SKB.DBF WHERE STUDENT. 学号=SKB.学号 GROUP BY STUDENT.学号 ORDER BY 3 DESCC SELECT TOP 1 STUDENT.学号,STUDENT.姓名,AVG(SKB.成绩) AS 平均分FROM STUDENT INNER JOIN SKB.DBF ON STUDENT.学号=SKB.学号 GROUP BY STUDENT.学号 ORDER BY 3 DESCD SELECT TOP 1 PERCENT STUDENT.学号,STUDENT.姓名,AVG(SKB.成绩) AS 平均分 FROM STUDENT INNER JOIN SKB.DBF ON STUDENT.学号=SKB.学号 GROUP BY STUDENT.学号 ORDER BY 3 DESC
考题
The STUDENT_GRADES table has these columns:STUDENT_ID NUMBER(12)SEMESTER_END DATEGPA NUMBER(4,3)The registrar requested a report listing the students‘ grade point averages (GPA) sorted from highest grade point average to lowest.Which statement produces a report that displays the student ID and GPA in the sorted order requested by the registrar? ()A. SELECT student_id, gpa FROM student_grades ORDER BY gpa ASC;B. SELECT student_id, gpa FROM student_grades SORT ORDER BY gpa ASC;C. SELECT student_id, gpa FROM student_grades SORT ORDER BY gpa;D. SELECT student_id, gpa FROM student_grades ORDER BY gpa;E. SELECT student_id, gpa FROM student_grades SORT ORDER BY gpa DESC;F. SELECT student_id, gpa FROM student_grades ORDER BY gpa DESC;
考题
根据SQL标准,要查询表student中平均年龄age小于21的所在系dept及其平均年龄值,下面哪条语句适用?()A select dept,avg(age) from student where avg(age)B select dept,avg(age) from student group by dept having avg(age)C select dept,avg(age) from student having avg(age)D select dept,avg(age) from student group by dept where avg(age)
考题
根据SQL标准,要查询表student中所有年龄age小于所有学生的平均年龄的记录,下面哪条语句适用?()A select * from student where ageB select * from student having ageC select * from student a where a.ageD select * from student a where (select avg(b.age) from student b ) >= a.age
考题
在成绩表中要求按“总分”降序排列,并查询前3名学生的记录,正确的命令是A.SELECT * TOP 3 FROM成绩表; WHERE总分DESCB.SELECT * TOP 3 FROM成绩表; FOR总分DESCC.SELECT * TOP 3 FROM成绩表; GROUP BY总分DESCD.SELECT * TOP 3FROM成绩表; ORDER BY总分DESC
考题
查询金额最大的那10%订单的信息。正确的SQL语句是A.SELECT*TOP l0 PERCENT FROM订单B.SELECT TOP l0%*FROM 订单 ORDER BY金额C.SELECT*TOP l0 PERCENT FROM 订单 ORDER BY 金额D.SELECT TOP l0 PERCENT*FROM 订单 ORDER BY 金额 DESC
考题
在成绩表中要求按“物理”降序排列,并查询前两名的学生姓名,正确的语句是( )。A.SELECT 姓名 TOP 2 FROM 成绩表 WHERE 物理 DESCB.SELECT 姓名 TOP 2 FROM 成绩表 FOR 物理 DESCC.SELECT 姓名 TOP 2 FROM 成绩表 GROUP BY 物理 DESCD.SELECT 姓名 TOP 2 FROM 成绩表 ORDER BY 物理 DESC
考题
若需在“选课”表中按降序排列查询前3名的学生,下列语法正确的是( )。A.SELECT 学生号,成绩 TOP 3 FROM 选课; ORDER BY 成绩 DESCB. SELECT 学生号,成绩 TOP 3 PERCENT FROM 选课: ORDER BY 成绩 DESCC.SELECT 学生号,成绩 TOP 3 FROM 选课 DESC:D. SELECT 学生号,成绩 TOP 3 PERCENT FROM 选课 DESC
考题
在成绩表中要求按“物理”降序排列,并查询前两名的学生姓名,正确的命令是( )。A.SELECT姓名TOP 2 FROM成绩表WHERE物理DESCB.SELECT姓名TOP 2 FROM成绩表FOR物理DESCC.SELECT姓名TOP 2 FROM成绩表GROUP BY物理DESCD.SELECT姓名TOP 2 FROM成绩表ORDER BY物理DESC
考题
在成绩表中要求按“物理”降序排列,并查询前两名的学生姓名,正确的语句是( )。A.SELECT姓名TOP 2 EROM成绩表WHERE物理 DESCB.SEl.ECT姓名TOP 2 FROM成绩表FOR物理DFAKCC.SELECT姓名TOP 2 FROM成绩表GROUP BY物 理DESCD.SELECT姓名TOP 2 FROM成绩表ORDER BY物 理DESC
考题
在成绩表中要求按“物理”降序排列,并查询前两名的学生姓名,正确的命令是( )。A.SELECT 姓名 TOP 2 FROM 成绩表 WHERE 物理 DESCB.SELECT 姓名 TOP 2 FROM 成绩表 FOR 物理 DESCC.SELECT 姓名 TOP 2 FROM 成绩表 GROUPBY 物理 DESCD.SELECT 姓名 TOP 2 FROM 成绩表 ORDER BY 物理 DESC
考题
在成绩表中要求按“物理”降序排列,并查询前两名的学生姓名,正确的命令是( )。A.SELECT姓名TOP 2 FRM成绩表WttERE物理DESCB.SELECT姓名TOP 2 FROM成绩表FOR物理DESCC.SELECT姓名TOP 2 FROM成绩表GROUP BY物理DESCD.SELECT姓名TOP 2 FROM成绩表ORDER BY物理DESC
考题
要从学生表(学号、姓名、性别、出生年月、入校总分、三好生)中查询入校总分最高的3个学生的记录,应使用的SELECT SQL语句是 ______。A.SELECT*FROM学生表ORDER BY入校总分ASCB.SELECT FROM学生表ORDER BY入校总分DESCC.SELECT FROM学生表TOP 3 ORDER BY入校总分ASCD.SELECT FROM学生表TOP 3 ORDER BY入校总分DESC
考题
现要利用Student表查询年龄最小的学生姓名和年龄。下列实现此功能的查询语句中,正确的是()。ASELECT Sname,MIN(Sage) FROM StudentBSELECT Sname,Sage FROM Student WHERE Sage = MIN(Sage)CSELECT TOP 1 Sname,Sage FROM StudentDSELECT TOP 1 Sname,Sage FROM Student ORDER BY Sage
考题
成绩表grade中字段score代表分数,以下()语句返回成绩表中的最低分。(选择两项)A、select max(score) from gradeB、select top 1 score from grade order by score ascC、Select min(score) from gradeD、select top 1 score from grade order by score desc
考题
查询student表中的所有非空email信息,以下语句正确的是()。A、Select email from student where email !=nullB、Select email from student where email not is nullC、Select email from student where email nullD、Select email from student where email is not null
考题
在ACCESS“学生”表中有学号、姓名、性别、入学成绩、身高字段。现需查询女生中身高最高的前三个学生的记录信息,正确的SQL语句是()。A、select * from学生 Where性别=”女”Group by身高B、select * from学生 Where性别=”女”order by身高C、select TOP3* from学生 Where性别=”女”Group by身高D、select TOP3* from学生 Where性别=”女”order by身高
考题
查询金额最大的那10%订单的信息。正确的SQL语句是()。A、SELECT * TOP 10 PERCENT FROM 订单B、SELECT TOP 10% * FROM 订单 ORDER BY 金额C、SELEC T* TOP 10 PERCENT FROM 订单 ORDER BY 金额D、SELECT TOP 10 PERCENT * FROM 订单 ORDER BY 金额 DESC
考题
现有书目表book,包含字段:price(float);现在查询一条书价最高的书目的详细信息,以下语句正确的是()A、select top 1 * from book order by price ascB、select top 1 * from book order by price descC、select top 1 * from book where price= (select max (price)from book)D、select top 1 * from book where price= max(price)
考题
查询student表中的所有非空email信息,以下语句正确的是()A、Select email from student where email!=nullB、Select email from student where emailnotisnullC、Select email from student where emailnullD、Select email from student where emailisnotnull
考题
在Transact-SQL语法中,以下SELECT语句正确的是()。A、SELECT * FROM studentB、SELECT * FROM student WHERE GETDATE()C、SELECT * FROM student ORDER st_idD、SELECT * FROM student BY St_name
考题
The STUDENT_GRADES table has these columns: STUDENT_ID NUMBER(12) SEMESTER_END DATE GPA NUMBER(4,3) Which statement finds the highest grade point average (GPA) per semester?()A、SELECT MAX(gpa) FROM student_grades WHERE gpa IS NOT NULL;B、SELECT (gpa) FROM student_grades GROUP BY semester_end WHERE gpa IS NOT NULL;C、SELECT MAX(gpa) FROM student_grades WHERE gpa IS NOT NULL GROUP BY semester_end;D、SELECT MAX(gpa) GROUP BY semester_end WHERE gpa IS NOT NULL FROM student_grades;E、SELECT MAX(gpa) FROM student_grades GROUP BY semester_end WHERE gpa IS NOT NULL;
考题
The STUDENT_GRADES table has these columns: STUDENT_ID NUMBER(12) SEMESTER_END DATE GPA NUMBER(4,3) Which statement finds the highest grade point average (GPA) per semester?()A、SELECT MAX (gpa) FROM student _ grades WHERE gpa IS NOT NULL;B、SELECT (gpa) FROM student _ grades GROUP BY semester_end WHERE gpa IS NOT NULL;C、SELECT MAX (gpa) FROM student _ grades WHERE gpa IS NOT NULL GROUP BY semester_end;D、SELECT MAX (gpa) GROUP BY semester_end WHERE gpa IS NOT NULL FROM student _ grades;E、SELECT MAX (gpa) FROM student _ grades GROUP BY semester_end WHERE gpa IS NOT NULL;
考题
The STUDENT_GRADES table has these columns: STUDENT_ID NUMBER(12) SEMESTER_END DATE GPA NUMBER(4,3) The registrar requested a report listing the students' grade point averages (GPA) sorted from highest grade point average to lowest. Which statement produces a report that displays the student ID and GPA in the sorted order requested by the registrar?()A、SELECT student_id, gpa FROM student_grades ORDER BY gpa ASC;B、SELECT student_id, gpa FROM student_grades SORT ORDER BY gpa ASC;C、SELECT student_id, gpa FROM student_grades SORT ORDER BY gpa;D、SELECT student_id, gpa FROM student_grades ORDER BY gpa;E、SELECT student_id, gpa FROM student_grades SORT ORDER BY gpa DESC;F、SELECT student_id, gpa FROM student_grades ORDER BY gpa DESC;
考题
单选题现要利用Student表查询年龄最小的学生姓名和年龄。下列实现此功能的查询语句中,正确的是()。A
SELECT Sname,MIN(Sage) FROM StudentB
SELECT Sname,Sage FROM Student WHERE Sage = MIN(Sage)C
SELECT TOP 1 Sname,Sage FROM StudentD
SELECT TOP 1 Sname,Sage FROM Student ORDER BY Sage
考题
单选题下列查询年龄最大的前四个学生(包括并列的情况)的语句,正确的是()。A
SELECT TOP 4 WITH TIES * FROM Student ORDER BY Sage ASCB
SELECT TOP 4 WITH TIES * FROM Student GROUP BY Sage ASCC
SELECT TOP 4 WITH TIES * FROM Student ORDER BY Sage DESCD
SELECT TOP 4 WITH TIES * FROM Student GROUP BY Sage DESC
热门标签
最新试卷