今天考,这是题目和我的答案!
2008-04-26 14:27
381 查看
题目:
一.单项选择
1.
Withrespecttoarelationaltable,whatisakey?
(a)Aminimalsubsetofcolumnsthatuniquelyidentifiesarowinthetable (b)TheIDandpasswordneededtoaccessthetable (c)Thesubsetofalltherowsandcolumnsinthetablethatarevisibletoallusersinthedatabasesystem (d)Theonecolumnthatuniquelyidentifiesarowinthetable
2.
Whichofthefollowingistrueaboutthenumberofprimarykeysandalternatekeyswithrespecttoatable?
(a)Therecanbemanyprimarykeys,butonlyonealternatekey. (b)Therecanbeonlyoneprimarykey,butmanyalternatekeys. (c)Therecanbeonlyoneprimarykeyandonlyonealternatekey. (d)Therecanbemanyprimarykeysandmanyalternatekeys.
3.
Aninsertionoperationwill_____iftheinsertionviolatestheuniquenesspropertyofakey.
(a)succeedwithwarning (b)crashthesystem (c)fail (d)succeedwithoutwarning
4.
Aninsertionoperationwill_____iftheinsertedprimarykeyhasaNULLvalue.
(a)succeedwithwarning (b)succeedwithoutwarning (c)fail (d)crashthesystem
5.
Fortwotablestobeunioncompatible,correspondingcolumnsfromeachtableshouldhavewhichofthefollowing?
(a)differentdomains (b)differentnames (c)thesamedomain (d)thesamename
6.
Intherelationalmodel,whichofthefollowingistrueaboutthedatatypeofacolumn?
(a)Itneednotbeatomicanditcannotbeanabstractdatatype. (b)Itmustbeatomicanditcannotbeanabstractdatatype. (c)Itneednotbeatomicanditcanbeanabstractdatatype. (d)Itmustbeatomicanditcanbeanabstractdatatype.
7.
Whatisanalternatekey?
(a)Anykeythatisnotaprimarykey (b)Thekeytousewhentheprimarykeydoesnotwork (c)Akeythatwasaddedtothetableafterthetablewasdesigned (d)Akeythatwillbecometheprimarykeywhentheprimarykeyisdeleted
8.
Whatdoesaprojectionoperationdo?
(a)Itextendsthenumberofcolumnsinatable. (b)Itselectsrowsfromatable. (c)Itextendsthenumberofrowsinatable. (d)Itselectscolumnsfromatable.
9.
Theresultofasetdifferenceoperationr-swillbe
(a)tuplesinrafterdeductingtheirvaluesbythecorrespondingvaluesinthetuplesins (b)tuplesinsafterdeductingtheirvaluesbythecorrespondingvaluesinthetuplesinr (c)thosetuplesthatareinsbutnotinr (d)thosetuplesthatareinrbutnotins
10.
WhichofthefollowingistrueaboutprimarykeysandforeignkeysholdingNULLvalue?1
一.单项选择
1.
Withrespecttoarelationaltable,whatisakey?
(a)Aminimalsubsetofcolumnsthatuniquelyidentifiesarowinthetable (b)TheIDandpasswordneededtoaccessthetable (c)Thesubsetofalltherowsandcolumnsinthetablethatarevisibletoallusersinthedatabasesystem (d)Theonecolumnthatuniquelyidentifiesarowinthetable
2.
Whichofthefollowingistrueaboutthenumberofprimarykeysandalternatekeyswithrespecttoatable?
(a)Therecanbemanyprimarykeys,butonlyonealternatekey. (b)Therecanbeonlyoneprimarykey,butmanyalternatekeys. (c)Therecanbeonlyoneprimarykeyandonlyonealternatekey. (d)Therecanbemanyprimarykeysandmanyalternatekeys.
3.
Aninsertionoperationwill_____iftheinsertionviolatestheuniquenesspropertyofakey.
(a)succeedwithwarning (b)crashthesystem (c)fail (d)succeedwithoutwarning
4.
Aninsertionoperationwill_____iftheinsertedprimarykeyhasaNULLvalue.
(a)succeedwithwarning (b)succeedwithoutwarning (c)fail (d)crashthesystem
5.
Fortwotablestobeunioncompatible,correspondingcolumnsfromeachtableshouldhavewhichofthefollowing?
(a)differentdomains (b)differentnames (c)thesamedomain (d)thesamename
6.
Intherelationalmodel,whichofthefollowingistrueaboutthedatatypeofacolumn?
(a)Itneednotbeatomicanditcannotbeanabstractdatatype. (b)Itmustbeatomicanditcannotbeanabstractdatatype. (c)Itneednotbeatomicanditcanbeanabstractdatatype. (d)Itmustbeatomicanditcanbeanabstractdatatype.
7.
Whatisanalternatekey?
(a)Anykeythatisnotaprimarykey (b)Thekeytousewhentheprimarykeydoesnotwork (c)Akeythatwasaddedtothetableafterthetablewasdesigned (d)Akeythatwillbecometheprimarykeywhentheprimarykeyisdeleted
8.
Whatdoesaprojectionoperationdo?
(a)Itextendsthenumberofcolumnsinatable. (b)Itselectsrowsfromatable. (c)Itextendsthenumberofrowsinatable. (d)Itselectscolumnsfromatable.
9.
Theresultofasetdifferenceoperationr-swillbe
(a)tuplesinrafterdeductingtheirvaluesbythecorrespondingvaluesinthetuplesins (b)tuplesinsafterdeductingtheirvaluesbythecorrespondingvaluesinthetuplesinr (c)thosetuplesthatareinsbutnotinr (d)thosetuplesthatareinrbutnotins
10.
WhichofthefollowingistrueaboutprimarykeysandforeignkeysholdingNULLvalue?1
相关文章推荐
- UC今天的题目,选择题,好像没答案,当场就郁闷了
- 今天考数据库,这是题目和我的答案!
- 常见C++笔试题目整理(含答案)7
- 50道经典SQL语句题目及答案(使用Oracle语法)
- 一些题目(答案待续)
- [面试题]C基础题目-测试下自己(附答案)
- 一些笔试题目和整理的答案 - 腾讯(Tencent)
- 今天面试的一些题目
- 2013年第四届蓝桥杯全国软件大赛本科A组c++预赛 题目及参考答案
- noip2014提高组初赛(答案+选择题题目+个人分析)
- 2011-10-15腾讯校园招聘笔试题目与参考答案
- 测试题纠错:答案与题目不符
- 33条C#、.Net经典面试题目及答案
- 期中测验题目及参考答案 类-对象-运算符重载
- C#.Net经典面试题目及答案
- 33条C#、.Net经典面试题目及答案
- 浙大ACM 1311题目翻译和答案
- 数据库题目参考答案
- 10道五百强面试经典题目及正确答案分析
- C++学习之2--10.09题目答案