7.检索学生姓名及其所选修课程的课程号和成绩。正确的SELECT语句是( C)
A.SELECT S.SN,SC.C#,SC.CRADE
FROMS
WHERE S.S#=SC.S#
B.SELCECT S.SN,SC.C#,SC.GRADE
FROM SC
WHERE S.S#=S
C.CRADEC.SELECT S.SN,SC.C#,SC.CRADE
FROM S,SC
WHERE S.S#:S C.S#
D.SELSECT S.SN,SC.C#,SC.GRADE
FROM S,SC
8.检索选修四门以上课程的学生总成绩(不统计不及格的课程),并要求按总成绩的降序捧列出来。正确的SElECT语句是( B)
A.SELECT S#,SUM(GRADE)FROM SC
WHERE GRADE >=60
CROUP BY S#
ORDER BY 2 DESC
HAVING COUNT(*) >=4
B.SELECT S#,SUM(GRADE)FROM SC
WHERE GRADE >=60
GROUP BY S#
HAVING COUNT(*) >=4
ORDER BY 2 DESC
C.SELECT S#,SUM(GRADE)FROM SC
WHERE GRADE >=60
HAVINC COUNT(*) >=4
GROUP BY S#
ORDER BY 2 DESC
D.DELECT S#,SUM(GRADE)FROM SC
WHERE GRADE >=60
ORDER BY 2 DESC
CROUP BY S#
HAVINC COUNT(*) >=4
9.若用如下的SQL语句创建一个student表:
CREATE TABLE student NO C(4)NOT NULL,
NAME C(8)NOT NULL,
SEX C(2),
AGE N(2)
可以插入到student表中的是(b )
A.(’1031’,’曾华’,男,23)
B.(’1031’,’曾华’,NULL,NULL)
C.(NULL,’曾华’,’男’,’23’)
D.(’1031’,NULL,’男’,23)
10.SQL语言是(b )的语言,易学习。
A.过程化
B.非过程化
C.格式化
D.导航式
2015年全国职称计算机考试教材(2007模 .. 定价:¥225 优惠价:¥213 更多书籍 | |
全国职称计算机考试速成过关系列套装:W .. 定价:¥133 优惠价:¥133.0 更多书籍 |