1.假定学生关系是S(S#,SNAME,SEX,AGE),课程关系是C(C#,CNAME,TEACHER),学生选课关系是SC(S#,C#,GRADE)。要查找选修 "COMPUTER"课程的"女"学生姓名,将涉及到关系(d )
A.S
B.SC, C
C.S,SC
D.S,C,SC
2.SQL语言中,实现数据检索的语句是(a )
A.SELECT
B.INDERT
C.UPDATE
D.DELETE
3.下列SQL语句中,修改表结构的是(a )
A.ALTER
B.CREATE
C.UPDATE
D.INSERT
4.SQL语言具有两种使用方式,分别称为交互式SQL和(c )
A.提示式SQL
B.多用户SQL
C.嵌入式SQL
D.解释式SQL
5.检索所有比 "王华"年龄大的学生姓名、年龄和性别。正确的SELECT语句是(a )
A.SELECT SN,AGE,SEX FROM S
SHERE AGE > (SELECT AGE FROM S)
WHERE SN=’王华’)
B.SELECT SN,AGE,SEX
FROM S
WHERE SN=’王华’
C.SELECT SN,ACE,SEX FROM S
WHERE AGE >(SELECT ACE
WHERE SN=’王华’)
D.SELECT SN,ACE,SEX FROM S
WHERE ACE >王华 AGE
6.检索选修课程"C2"的学生中成绩最高的学生的学号。正确的SeLECT的语句是(d )
A.SELECT S# FORM SC
WHERE C#= "C2" AND GRADE> =(SELECT GRADE FORM SC)
WHERE C#= "C2")
B.SELECT S#FORM SC
WHERE C#= "C2" AND GRADE IN(SELECT CRADE FORM SC)
WHERE C#= "C2"
C.SELECT S# FORM SC
WHERE C#= "C2" AND GRADE NOT IN(SELECT GRADE FORM SC
WHERE C#= "C2"
D.SELECT S# FORM SC
WHERE C#= "C2" AND CRANDE> =ALL(SELECT GRADE FORM SC
WHERE C#= "C2")
2015年全国职称计算机考试教材(2007模 .. 定价:¥225 优惠价:¥213 更多书籍 | |
全国职称计算机考试速成过关系列套装:W .. 定价:¥133 优惠价:¥133.0 更多书籍 |