|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
提供TCP/IP、ODBC和JDBC等多种数据库连接路径。数据|数据库
标题:
一.单项选择
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?
(a)AprimarykeycanholdaNULLvalueandaforeignkeycannotholdaNULLvalue(b)AprimarykeycannotholdaNULLvalueandaforeignkeycannotholdaNULLvalue(c)AprimarykeycanholdaNULLvalueandaforeignkeycanholdaNULLvalue(d)AprimarykeycannotholdaNULLvalueandaforeignkeycanholdaNULLvalue
11.
Incontrastto_____tables,aviewrefersto_____.
(a)base,avirtualtable(b)empty,non-emptytables(c)non-empty,emptytables(d)virtual,basetables
12.
Whenremovingatablefromtheschema,usingtheCASCADEoptionwould
(a)removethetableandallreferencestoit(b)recursivelyremovethetableandallothertablesthattheremovedtablerefersto(c)removethetableandallothertablesthatthespecifiedtablerefersto.(d)removethetableiftherearenoreferencestoit
13.
Inatransaction,COMMITspecifiesthat
(a)allupdates(includinginserts,deletes,modifications)ofatransactionareabouttobemadepermanentinthedatabase(b)allupdates(includinginserts,deletes,modifications)ofatransactionaretobemadepermanentinthedatabase(c)onlytheinsertsanddeletesofatransactionaretobemadepermanentinthedatabase(d)onlytheinsertsanddeletesofatransactionareabouttobemadepermanentinthedatabase
14.
Whichofthefollowingistrueaboutthephysicalstorageoftablesdefinedbyviews?
(a)Extraphysicalstorageisneededforstoringthetablesdefinedbyviews,onlyifviewsdefineadditionalnon-existingcolumns.(b)Thereisnoextraphysicalstorageneededtostoretablesthataviewdefines.(c)Extraphysicalstorageisalwaysneededtostoretablesthataviewdefines.(d)Extraphysicalstorageisneededtostoretablesthataviewdefines,onlywhenrowsareinsertedintotheview.
15.
WhichofthefollowingSQLcommandscanbeusedtochange,add,ordropcolumndefinitionsfromatable?
(a)MODIFYTABLE(b)UPDATETABLE(c)CHANGETABLE(d)ALTERTABLE
16.
WhichofthefollowingSQLcommandscanbeusedtodestroyandremoveatablefromtheschema?
(a)DROPTABLE(b)DESTROYTABLE(c)REMOVETABLE(d)DELETETABLE
17.
InSQL,whichofthefollowingoperatorsareusedtocheckforsetmembershipinaSELECTstatement?
(a)MEMBERandNOTMEMBER(b)INandNOTIN(c)SUBSETandNOTSUBSET(d)COMPONENTandNOTCOMPONENT
18.
InSQL,theresultsofa_____statementcanbeusedtoprocessa_____statement.
(a)INSERT,SELECT(b)SELECT,INSERT(c)INSERT,DELETE(d)DELETE,INSERT
19.
Inatransaction,aROLLBACKisusedto
(a)rollalltheupdates(includinginserts,deletes,modifications)ofanabortedtransactionintothedatabase(b)rollonlytheinsertsanddeletesofanabortedtransactionintothedatabase(c)discardalltheupdates(includinginserts,deletes,modifications)ofatransactionfromthedatabase(d)discardonlytheinsertsandupdatesofatransactionfromthedatabase
20.
WhenastringwhoselengthisstrictlylessthannisenteredasthevalueofafieldwhoseSQLdatatypeisCHAR(n),thesystemrespondsby
(a)paddingtheendofthestringwithspacestolengthnbeforestoringit(b)paddingtheendofthestringwithNULLcharacterstolengthnbeforestoringit(c)re-promptingfortheentryofastringwhoselengthisexactlyn(d)storingthestringasis
|
|