创建成绩表tscore,成绩(score)列上创建检查约束,要求score>=0,正确的语句为()
举一反三
- 从学生成绩表SC中查询平均成绩大于60分的同学的学号和平均成绩的正确语句为: A: selectsno,avg(score)assscorefromscgroupbysnohavingavg(score)>60 B: selectsno,avg(score)assscorefromscgroupbysnowhereavg(score)>60 C: selectsno,avg(score)assscorefromscwhereavg(score)>60 D: selectsno,avg(score)assscorefromschavingavg(score)>60
- 在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
- 在SCORE表中,按成绩升序排列存入NEW表中,应使用的SQL语句是 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中查询选修1号课程的学生的学号和成绩,可用查询语句:select学号,成绩 from score 课程号="1"
- 成绩表 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