A: SELECT * FROM SCORE ORDER BY 成绩 INTO NEW
B: SELECT * FROM SCORE ORDER BY 成绩 INTO CURSOR NEW
C: SELECT * FROM SCORE ORDER BY 成绩 INTO TABLE NEW
D: SELECT * FROM SCORE ORDER BY 成绩 TO NEW
举一反三
- 在SCORE表中,按成绩升序排列存入NEW表中,应使用的SQL语句是( ). A: SELECT * FROM SCORE ORDER BY 成绩 B: SELECT * FROM SCORE ORDER BY 成绩 INTO TABLE NEW C: SELECT * FROM SCORE ORDER BY 成绩 TO NEW D: SELECT * FROM SCORE ORDER BY 成绩 INTO CURSOR NEW
- 查询学生成绩,将成绩首先按英语,然后按数学从高到低排序,正确的语句是( )。 A: select * from score order by english asc,maths asc B: select * from score order by english desc,maths desc C: select * from score order by maths,english D: select * from score order by english,maths
- 从student表中查询学生姓名、年龄和成绩,结果按照年龄降序排序,年龄相同的按照成绩升序排序,下面SQL语句正确的是: A: select name, age, score from student order by age desc , score; B: select name, age, score from student order by age , score asc; C: select name, age, score from student order by 2 desc , 3 asc; D: select name, age, score from student order by 1 desc , 2;
- 下列选项中,能够按照 score 由高到低显示 student 表中记录的 SQL 语句是 A: SELECT* FROM student ORDER BY score ; B: SELECT* FROM student ORDER BY score ASC ; C: SELECT * FROM student ORDER BY score DESC ; D: SELECT* FROM student GROUP BY score DESC ;
- 要从SC表中查找缺成绩(SCORE)的学生学号(NO),相应的SQL语句是( )。 A: SELECT NO FROM SC WHERE SCORE = 0 B: SELECT NO FROM SC WHERE SCORE IS 'NULL' C: SELECT NO FROM SC WHERE SCORE = NULL D: SELECT NO FROM SC WHERE SCORE IS NULL
内容
- 0
成绩表 SCInfo(StId,CNo,Score) 的属性StId表示学号,CNo为课程编号,Score为成绩。从SCInfo表中找出无成绩的元组的SQL语句是( )。 A: SELECT * FROM SCInfo WHERE Score=NULL B: SELECT * FROM SCInfo WHERE Score IS '' C: SELECT * FROM SCInfo WHERE Score ='' D: SELECT * FROM SCInfo WHERE Score IS NULL
- 1
查询“选课”表中成绩最高的前10%记录,正确的SQL语句是__________。 A: SELECT*TOP10FROM选课 ORDER BY成绩 B: SELECT*TOP10FROM选课 ORDER BY成绩DESC C: SELECT*TOP10PERCENT FROM选课 ORDER BY成绩 D: SELECT*TOP10PERCENT FROM选课 ORDER BY成绩DESC
- 2
先按学号升序排列,再按成绩降序排列检索出选课表中的所有信息,下面SQL语句正确的是( )。 A: SELECT * FROM 选课表 ORDER BY 学号, 成绩; B: SELECT * FROM 选课表 GROUP BY 学号, 成绩; C: SELECT * FROM 选课表 ORDER BY 学号, 成绩 DESC; D: SELECT * FROM 选课表 ORDER BY 学号 DESC, 成绩;
- 3
结构化查询语言SQL是一种______语言,其主要功能有______,它的典型句型为SELECT A1,A2,…,An FROM r1,r2,…,rm WHERE F 其中A1,A2,…,An和F分别是______。 关系模式SCS(Sno,Cno,Score)中,Sno是学生的学号,Cno是课程号,Score为成绩。若要查询每门课程的平均成绩,且要求查询结果按平均成绩升序排列。平均成绩相同时,按课程号降序排列,可用SQL语言写为______。若查询结果仅限于平均分数超过85分的,则应______。 A: SELECT Cno, AVG(Score) FROM SCS GROUP BY Score ORDER BY 2, Cno DESC B: SEIECT Cno, AVG(Score) FROM SCS GROUP BY Cno ORDER BY 2, Cno DESC C: SELECT Cno, AVG(Score) FROM SCS WHERE Cno, DESC GROUP BY Score D: SELECT Cno, AVG(Score) FROM SCS GROU PBY, AVG(Score) ORDER BY, Cno DESC
- 4
若要将STUDENT表中的成绩在600分以上的学生姓名和成绩按成绩由高到低的顺序显示出来,应使用的SQL语句为( )。 A: SELECT 姓名,成绩 FROM STUDENT WHERE 成绩>=600 ORDER BY 成绩 B: SELECT 姓名,成绩 FROM STUDENT WHERE 成绩>=600 ORDER BY 成绩 ASC C: SELECT 姓名,成绩 FROM STUDENT WHERE 成绩>=600 ORDER BY 成绩 DESC D: SELECT 姓名,成绩 FROM STUDENT WHERE 成绩>=600 ORDER BY 成绩/D