- 相關推薦
計算機三級《數(shù)據(jù)庫技術》考前模擬題和答案
計算機三級考試備考工作已經(jīng)進入緊張沖刺階段,不知道同學們都復習得怎么樣呢?以下是編搜索整理的一份計算機三級《數(shù)據(jù)庫技術》考前模擬題和答案,供參考練習,預祝考生們考出自己理想的成績!
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語言中,實現(xiàn)數(shù)據(jù)檢索的語句是(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")
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.檢索選修四門以上課程的學生總成績(不統(tǒng)計不及格的課程),并要求按總成績的降序捧列出來。正確的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語句創(chuàng)建一個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)
【計算機三級《數(shù)據(jù)庫技術》考前模擬題和答案】相關文章:
計算機三級《數(shù)據(jù)庫技術》考前測試題及答案08-30
計算機三級考試《網(wǎng)絡技術》考前模擬題及答案07-28
2016計算機三級考試《數(shù)據(jù)庫技術》模擬題及答案11-04
計算機三級數(shù)據(jù)庫技術臨考模擬題及答案11-01
全國計算機三級《數(shù)據(jù)庫技術》考前訓練題及答案09-21
2016計算機三級考試《網(wǎng)絡技術》考前模擬題及答案05-25
2024年計算機三級數(shù)據(jù)庫技術考前試題及答案10-23