EXAM 1 - 2 STUDY GUIDE Q AND A
Agjdatagj____gjservesgjasgjagjconceptualgjblueprintgjorgjagjdatabasegjandgjitsgjstructure?gj-
j
gjanswer--Model
Whatgjisgjthegjnamegjgivengjtogjthegjfieldgjthatgjservesgjtogjuniquelygjidentifygjanygjgivengjreco
rdgjingjthatgjtable?gj-gjanswer--Primarygjkey
SpreadsheetsgjaregjsuperiorgjtogjRDBMSgjingjtermsgjofgjminimizinggjdatagjinconstanciesgj-
gjanswer--False
Agj____gjisgjagjdatagjbasegjobjectgjaboutgjwhichgjdatagjwillgjbegjstoredgj-gjanswer--Entity
Ifgjusedgjasgjagjprimarygjkey,gjyourgjNKUgjusernamegjwouldgjbegjagjsurrogategjprimarygjkey?
gj-gjanswer--False
Whatgjisgjthegjnamegjgivengjtogjangjattributegjorgjfieldgjthatgjservesgjtogjenforcegjreferentialgjin
tegrity?gj-gjanswer--ForeigngjKey
____gjisgjcontextualizedgjdatagjwithgjthegjpotentialgjtogjbecomegjknowledgegj-gjanswer--
Information
Thegjrelationshipgjbetweengjprojectgjandgjemployeegjisgjmanygjtogjmany,gjhowgjmanygjtable
sgjwillgjbegjneededgjforgjthisgjrelationshipgjingjthegjdatabase?gj-gjanswer--3gjtables
Agj___gjisgjagjcharacteristicgjorgjpropertygjofgjangjentitygj-gjanswer--Attribute
Whengjagjdatagjmodelgjisgjimplementedgjasgjagjphysicalgjdatabase,gjitsgjattributesgjbecome
?gj-gjanswer--Fields
Ingjagjonegjtogjmanygjrelationships,gjthegjforeigngjkeygjalwaysgjresidesgjingjthegjparentgjtablegj
-gjanswer--False
Agjprimarygjkeygjthatgjconsistsgjofgjmoregjthangjonegjcolumngjisgjcalledgjagj___gjkeygj-
gjanswer--Composite
Foreigngjkeysgjaregjautomaticallygjindexedgj-gjanswer--False
Togjsatisfygjthegjconditiongjofgjthegjentitygjintegrity,gjallgjprimarygjkeygjvaluesgjmustgjbegjuniq
uegjandgj___gj-gjanswer--NotgjNull
,Agj___gj___gjexpressesgjagjusergjrequirementgjingjagjwaygjthatgjenablesgjdatagjmodelinggj-
gjanswer--BusinessgjRule
Agjforeigngjkeygjvaluegjcangjbegjnullgj-gjanswer--True
Agjcolumngjthatgjisgjeligiblegjtogjservegjasgjagjprimarygjkeygjisgjagj___gjkeygj-gjanswer--
Candidate
Agjconceptualgjmodelgjisgjsoftwaregjandgjhardwaregjindependentgj-gjanswer--True
Whichgjtypegjofgjdatagjmodelgjisgjsoftwaregjdependentgjandgjhardwaregjindependentgj-
gjanswer--Logical
___gjrefersgjtogjthegjminimumgjnumbergjofgjrelationsgjbetweengjentity'sgj-gjanswer--
Optionality
Angjindexgjwillgjslowgjdowngjagjquerygjmadegjwithgjthegjinsertgjcommandgj-gjanswer--True
Agjsequelgjstatementgjbasedgjongjthisgjcommandgjyieldsgjallgjrowsgjingjonegjtablegjthatgjaregjn
otgjfoundgjingjthegjothergj-gjanswer--Difference
Agjdatabasegj___gjtakesgjlogicalgjdatagjmodelgjandgjimplementsgjitgjongjagjdatabasegjserverg
j-gjanswer--Architect
3gjcoregjcomponentsgjtogjangjRDBMS,gjnamegjonegjofgjthemgj-gjanswer--
Interface,gjSQLgjEngine,gjStoredgjTables
___gjisgjdatagjaboutgjdatagj-gjanswer--Metagjdata
Namegjonegjofgjthegjothergj2gjnotationgjsystemsgj-gjanswer--Crow'sgjFoot,gjChengjorgjUML
SQLgj-gjanswer--Structuredgjquerygjlanguage.gjUsedgjbygjSQL-
basedgjdatabases,gjsuchgjasgjMicrosoft'sgjSQLgjServer.gjWebsitesgjintegratedgjwithgjagjSQ
LgjdatabasegjaregjsubjectgjtogjSQLgjinjectiongjattacks.gjInputgjvalidationgjwithgjformsgjandgjst
oredgjproceduresgjhelpgjpreventgjSQLgjinjectiongjattacks.gjMicrosoft'sgjSQLgjServergjusesgj
portgj1433gjbygjdefault.
EnterprisegjDatabasegj-gjanswer--
Agjdatabasegjusedgjacrossgjdepartmentsgjthroughoutgjagjlargegjorganization.
DatagjWarehousegj-gjanswer--Agjlogicalgjcollectiongjofgjinformationgj-
gjgatheredgjfromgjmanygjdifferentgjoperationalgjdatabasesgj-
gjthatgjsupportsgjbusinessgjanalysisgjactivitiesgjandgjdecision-makinggjtasks.
Ingjlargergjorganizations,gjmuchgjofgjthegjdatagjingjangjRDBMSgjgetsgjloadedgjintogjagjdatagjw
arehouse,gjwhichgjmakesgjitgjeasiergjtogjknow,gjwhichgjtypesgjofgjcustomersgjpurchasesgjwh
ichgjtypesgjofgjproducts.
, DatabasegjAdministratorgj-gjanswer--
Agjfoundationalgjunderstandinggjofgjrelationalgjdatabasesgjisgjcrucialgjforgjprocuring,gjconfi
guring,gjandgjmaintaininggjdatabasegjandgjdevelopmentgjservers.
DatabasegjDesignersgjandgjDatagjAnalystsgj-gjanswer--
Manygjreportsgjdeliveredgjtogjdecisiongjmakersgjquerygjagainstgjandgjdrawgjfromgjrelationalg
jdatabases.
ThesegjqueriesgjaregjtypicallygjpreparedgjandgjexecutedgjingjagjGUI;gjsomegjaregjusedgjtogjp
opulategjdatagjwarehouses.
Databasegjdesignersgjproducegjdatagjmodelsgjbygjworkinggjwithgjdatabasegjusers.
SoftwaregjDevelopersgj-gjanswer--
ManygjApplicationsgjquerygjagainst,gjdrawgjfrom,gjandgjpopulategjrelationalgjdatabases.
ThesegjqueriesgjaregjSQLgjstatementsgjembeddedgjingjwhatevergjcodegjthegjappgjisgjwritten
gjin.
Spreadsheetsgjaregjnotgjagjsubstitutegjforgjagjrelationalgjdatabase.gj-gjanswer--
Limitationgj#1
Datagjredundanciesgjandgjinconsistenciesgjaregjinevitable.
There'sgjnogjreferentialgjintegrity,gjsogjthegjsamegjdatagjmaygjappeargjingjmultiplegjplaces.
Ingjturn,gjrecordsgjmaygjgetgjupdatedgjingjonegjworksheetgjbutgjnotgjthegjother.
Thus,gjthegjlikelihoodgjforgjhumangjerrorgjisgjgreater.
Limitation#2
It'sgjmuchgjmoregjtediousgjandgjinefficientgjtogjproducegjdetailedgjreports.
RDBMSgjaregjdesignedgjtogjstoregjhighlygjstructuredgjdata.gj-gjanswer--
OperationalgjDatagjaregjamenablegjtogjstructuregjbecausegjwegjknowgjwhatgjallgjthegjentitie(
table)gjandgjattributes(columns)gjare,gjandgjwegjknowgjthegjrelationshipsgjbetweengjentities
.
EntitygjandgjAttributegjNamesgj-gjanswer--
Entitygjandgjattributegjnamesgjshouldgjrevealgjwhatgjtheygjrepresent;gjusersgjshouldn'tgjhav
egjtogjwondergjandgjguess.
ForgjExample,gjthegje-
mailgjaddressgjofgjthegjcontactgjpersongjforgjagjvendorgjshouldgjbegjrepresentedgjasgjmainC
ontactEmailgjorgjmain_contact_email,gjnotgjmnCntctEmIAdrs.
Entitygjandgjattributegjnamesgjwithgj2+gjwordsgjshouldgjeithergjusegjunderscoresgjorgjcapitali
zegjthegjfirstgjlettergjofgjthegjsecondgjandgjthirdgjetc.gjword.gjcustomerCitygjcustomer_city
BusinessgjRulegj-gjanswer--
Agjbusinessgjrulegjisgjstatementgjthatgjimposesgjsomegjformgjofgjconstraintgjongjagjspecificgja
spectgjofgjthegjdatabase,gjsuchgjasgjthegjelementsgjwithingjagjfieldgjspecificationgjforgjagjparti
culargjfieldgjorgjthegjcharacteristicsgjofgjagjgivengjrelationship
Agjmanager,gjexecutive,gjorgjcommitteegjmustgj