計算機等考三級資料庫考前模擬試題
資料是用物理符號記錄下來的可以鑑別的.資訊。下面給大家整理了計算機等考三級資料庫考前模擬試題,歡迎閱讀!
計算機等考三級資料庫考前模擬試題
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")