![数据库期末考试题_第1页](http://file4.renrendoc.com/view/c1f7d9bc15cda68f01d23bd83b33ee4f/c1f7d9bc15cda68f01d23bd83b33ee4f1.gif)
![数据库期末考试题_第2页](http://file4.renrendoc.com/view/c1f7d9bc15cda68f01d23bd83b33ee4f/c1f7d9bc15cda68f01d23bd83b33ee4f2.gif)
![数据库期末考试题_第3页](http://file4.renrendoc.com/view/c1f7d9bc15cda68f01d23bd83b33ee4f/c1f7d9bc15cda68f01d23bd83b33ee4f3.gif)
![数据库期末考试题_第4页](http://file4.renrendoc.com/view/c1f7d9bc15cda68f01d23bd83b33ee4f/c1f7d9bc15cda68f01d23bd83b33ee4f4.gif)
![数据库期末考试题_第5页](http://file4.renrendoc.com/view/c1f7d9bc15cda68f01d23bd83b33ee4f/c1f7d9bc15cda68f01d23bd83b33ee4f5.gif)
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1.DBMShasmanyadvantages.Thenwhataretwodisadvantagesofdatabasesystem?
Answer:Twodisadvantagesassociatedwithdatabasesystemsarelisted
below.
a.Setupofthedatabasesystemrequiresmoreknowledge,money,skills,
andtime.
b.b.Thecomplexityofthedatabasemayresultinpoorperformance.
2Listfiveresponsibilitiesofadatabasemanagementsystem.
Ansers:
eractionwiththefilemanager.
egrityenforcement.
c.securityenforcement.
d.backupandrecovery.
e.concurrencycontrol.
3.Whatarefivemainfunctionsofadatabaseadministrator?
Answer:Fivemainfunctionsofadatabaseadministratorare:
,Tbcreatetheschemedefinition
,Todefinethestoragestructureandaccessmethods
,Tbmodifytheschemeand/orphysicalorganizationwhennecessary
,Tograntauthorizationfordataaccess
,Tospecifyintegrityconstraints
4.Explainthedistinctionsamongthetermsprimarykey,candidatekey,
andsuperkey.
Answer:Asuperkeyisasetofoneormoreattributesthat,taken
collectively,al-lowsustoidentifyuniquelyanentityintheentityset.A
superkeymaycontainextraneousattributes.IfKisasuperkey,thensois
anysupersetofK.Asuperkeyforwhichnopropersubsetisalsoa
superkeyiscalledacandidatekey.Itispossiblethatseveraldistinctsets
ofattributescouldserveascandidatekeys.Theprimarykeyisoneofthe
candidatekeysthatischosenbythedatabasedesignerastheprincipal
meansofidentifyingentitieswithinanentityset
6.Whatislogicaldataindependenceandwhyisitimportant?
Answer:Logicaldataindependencemeansthatusersareshieldedfrom
changesinthelogicalstructureofthedata,i.e.,changesinthechoiceof
relationstobestored.Forexample,ifarelationStudents(sid,sname,gpa)
isreplacedbyStudentnames(sid,sname)andStudentgpas(sid,gpa)for
somereason,applicationprogramsthatoperateontheStudentsrelation
canbeshieldedfromthischangebydefiningaviewStu-dents(sid,sname,
gpa)(asthenaturaljoinofStudentnamesandStudentgpas).Thus,
applicationprogramsthatrefertoStudentsneednotbechangedwhenthe
relationStudentsisreplacedbytheothertworelations.Theonlychange
isthatinsteadofstoringStudentstuples,thesetuplesarecomputedas
neededbyusingtheviewdefinition;thisistransparenttotheapplication
program.
7.Whichofthefollowingplaysanimportantroleinrepresentinginforma
tionabouttherealworldinadatabase?Explainbriefly.
1.Thedatadefinitionlanguage.
2.Thedatamanipulationlanguage.
3.Thebuffermanager.
4.Thedatamodel.
8Considerthefollowinginformationaboutauniversitydatabase:
ProfessorshaveanSSN,aname,anage,arank,andaresearchspecialty.
Projectshaveaprojectnumber,asponsorname(e.g.,NSF),astarting
date,anendingdate,andabudget.
GraduatestudentshaveanSSN,aname,anage,andadegreeprogram
(e.g.,M.S.orPh.D.).
Eachprojectismanagedbyoneprofessor(knownastheproject's
principalinvestigator).
Eachprojectisworkedonbyoneormoreprofessors(knownasthe
project'sco-investigators).
Professorscanmanageand/orworkonmultipleprojects.
Eachprojectisworkedonbyoneormoregraduatestudents(knownas
theproject'sresearchassistants).
Whengraduatestudentsworkonaproject,aprofessormustsupervise
theirworkontheproject.Graduatestudentscanworkonmultiple
projects,inwhichcasetheywillhavea(potentiallydifferent)supervisor
foreachone.
Departmentshaveadepartmentnumber,adepartmentname,andamain
office.
Departmentshaveaprofessor(knownasthechairman)whorunsthe
department.
Professorsworkinoneormoredepartments,andforeachdepartmentthat
theyworkin,atimepercentageisassociatedwiththeirjob.
Graduatestudentshaveonemajordepartmentinwhichtheyareworking
ontheirdegree.
Eachgraduatestudenthasanother,moreseniorgraduatestudent(known
asastudentadvisor)whoadviseshimorheronwhatcoursestotake.
DesignanddrawanERdiagramthatcapturestheinformationaboutthe
university.
UseonlythebasicERmodelhere;thatis,entities,relationships,and
attributes.Besuretoindicateanykeyandparticipationconstraints.
s
mnerg
aouni
rittd
gaapan
ileco
drtps
Rgoe
nnr
Eino
edacc
htn
oue
dpsoh
neyt,
arf)
8oIetO
c.aI(
eseele
ihbrcR
ctisA
rees
xtostH,
EapnCR
ersenE
mcamsG
oosesE
rtttfT
fsniator
etaspNI
snrt(
aesLo
bmnsrn
ateo.Qod
atacySs(
dths)s
sewget
yLhtnfnsp
tifniiorse
srQoalwPfD
eSpo,)o
veyxlE4rE
itineoL6pL
nra,fB,((B
ums),R
eWteA4,YA
h.sniT6RRAET
tdaah(EHK
reertTEREGE
enrsTAGECYT
dgutn.AEyA
iisorsHTTtiR
sepacenECNlAE
2WnoRNIaR
F-xurc2,7ERDiagnunfbrExerciseodcewiteIiM
CudsaCkcIC
omnl.maeneR.
.9ynaosAer1ngaarpsP2
dnameCHAR(64),
officeCHAR(IO),
PRIMARYKEY(dno))
3.CREATETABLERuns(dnoINTEGER,
profssnCHAR(IO),
PRIMARYKEY(dno,profssn),
FOREIGNKEY(profssn)REFERENCESProfessors,
FOREIGNKEY(dno)REFERENCESDepts)
4.CREATETABLEWorkDept(dnoINTEGER,
profssnCHAR(IO),
pctimeINTEGER,
PRIMARYKEY(dno,profssn),
FOREIGNKEY(profssn)REFERENCESProfessors,
FOREIGNKEY(dno)REFERENCESDepts)
ObservethatwewouldneedcheckconstraintsorassertionsinSQLto
enforcetherulethatProfessorsworkinatleastonedepartment.
5.CREATETABLEProject(pidINTEGER,
sponsorCHAR(32),
startdateDATE,
enddateDATE,
budgetFLOAT,
PRIMARYKEY(pid))
6.CREATETABLEGraduates(gradssnCHAR(IO),
ageINTEGER,
nameCHAR(64),
degprogCHAR(32),
majorINTEGER,
PRIMARYKEY(gradssn),
FOREIGNKEY(major)REFERENCESDepts)
NotethattheMajortableisnotnecessarysinceeachGraduatehasonly
onemajor
andsothiscanbeanattributeintheGraduatestable.
7.CREATETABLEAdvisor(seniorssnCHAR(IO),
gradssnCHAR(IO),
PRIMARYKEY(seniorssn,gradssn),
FOREIGNKEY(seniorssn)
REFERENCESGraduates(gradssn),
FOREIGNKEY(gradssn)REFERENCESGraduates)
8.CREATETABLEManages(pidINTEGER,
profssnCHAR(IO),
PRIMARYKEY(pid,profssn),
FOREIGNKEY(profssn)REFERENCESProfessors,
FOREIGNKEY(pid)REFERENCESProjects)
9.CREATETABLEWorkIn(pidINTEGER,
profssnCHAR(IO),
PRIMARYKEY(pid,profssn),
FOREIGNKEY(profssn)REFERENCESProfessors,
FOREIGNKEY(pid)REFERENCESProjects)
ObservethatwecannotenforcetheparticipationconstraintforProjectsin
the
WorkIntablewithoutcheckconstraintsorassertionsinSQL.
10.CREATETABLESupervises(profssnCHAR(10),
gradssnCHAR(10),
pidINTEGER,
PRIMARYKEY(profssn,gradssn,pid),
FOREIGNKEY(profssn)REFERENCESProfessors,
FOREIGNKEY(gradssn)REFERENCESGraduates,
FOREIGNKEY(pid)REFERENCESProjects)
NotethatwedonotneedanexplicittablefortheWorkProjrelationsince
everytimeaGraduateworksonaProject,heorshemusthavea
Supervisor.
10.Considerthefollowingrelations:
Student(snum:integer,sname:string,major:string,level:string,age:
integer)
Class(name:string,meetsat:string,room:string,fid:integer)
Enrolled(snum:integer,cname:string)
Faculty(fid:integer,fhame:string,deptid:integer)
Themeaningoftheserelationsisstraightforward;forexample,Enrolled
hasonerecordperstudent-classpairsuchthatthestudentisenrolledin
theclass.
WritethefollowingqueriesinSQL.Noduplicatesshouldbeprintedin
anyoftheanswers.
1.FindthenamesofallJuniors(level=JR)whoareenrolledinaclass
taughtbyI.leach.
2.FindtheageoftheoldeststudentwhoiseitheraHistorymajoror
enrolledinacoursetaughtbyI.Teach.
3.FindthenamesofallclassesthateithermeetinroomRI28orhave
fiveormorestudentsenrolled.
4.Findthenamesofallstudentswhoareenrolledintwoclassesthat
meetatthesametime.
5.Findthenamesoffacultymemberswhoteachineveryroominwhich
someclassistaught.
Theanswersaregivenbelow:
1.SELECTDISTINCTS.Sname
FROMStudentS,ClassC,EnrolledE,FacultyF
WHERES.snum=E.snumANDE.cname=C.nameAND6d=F.fid
AND
F.fname='I.Teach'ANDS.level='JR'
2.SELECTMAX(S.age)
FROMStudentS
WHERE(S.major='History')
ORS.snumIN(SELECTE.snum
FROMClassC,EnrolledE,FacultyF
WHEREE.cname=C.nameANDC.fid=F.fid
ANDF.fname=工Teach')
3.SELECTC.name
FROMClassC
WHEREC.room='R128'
ORC.nameIN(SELECTE.cname
FROMEnrolledE
GROUPBYE.cname
HAVINGCOUNT(*)>=5)
4.SELECTDISTINCTS.sname
FROMStudentS
WHERES.snumIN(SELECTEl.snum
FROMEnrolledEl,EnrolledE2,ClassCl,ClassC2
WHEREEl.snum=E2.snumANDEame<>E2.cname
ANDEame=C
ANDE2.cname=C2.nameANDCl.meetsat=C2.meetsat)
5.SELECTDISTINCTEfname
FROMFacultyF
WHERENOTEXISTS((SELECT*
FROMClassC)
EXCEPT
(SELECTCI.room
FROMClassCl
WHEREC1.fid=F.fid))
l.Listfoursignficantdifferencesbetweenafile-processingsystemandaDBMS.
Answer:Somemaindifferencesbetweenadatabasemanagementsystemand
afile-processingsystemare:
•Bothsystemscontainacollectionofdataandasetofprogramswhichaccessthatdata.A
databasemanagementsystemcoordinatesboththephysicalandthelogicalaccesstothedata,
whereasafile-processingsystemcoordinatesonlythephysicalaccess.
•Adatabasemanagementsystemreducestheamountofdataduplicationby
ensuringthataphysicalpieceofdataisavailabletoallprogramsauthorized
tohaveaccesstoit,whereasdatawrittenbyoneprograminfiie-processing
systemmaynotbereadablebyanotherprogram.
•Adatabasemanagementsystemisdesignedtoallowflexibleaccesstodata
(i.e.,queries),whereasafile-processingsystemisdesignedtoallowpredeterminedaccesstodata
(i.e.,compiledprograms).
•Adatabasemanagementsystemisdesignedtocoordinatemultipleusers
accessingthesamedataatthesametime.Afile-processingsystemisusually
designedtoallowoneormoreprogramstoaccessdifferentdafiiesat
thesametime.Inafile-processingsystem,afilecanbeaccessedbytwo
programsconcuiTentlyonlyifbothprogramshaveread-onlyaccesstothe
file.
2Whywouldyouchooseadatabasesysteminsteadofsimplystoringdata
inoperatingsystemfiles?Whenwoulditmakesensenottouseadatabasesystem?
Answer1.1Adatabaseisanintegratedcollectionofdata,usuallysolargethatit
hastobestoredonsecondarystoragedevicessuchasdisksortapes.Thisdatacan
bemaintainedasacollectionofoperatingsysteifiles,orstoredinaDBMS(database
managementsystem).TheadvantagesofusingaDBMSare:
Dataindependenceandefficientaccess.Databaseapplicationprogramsarein
dependentofthedetailsofdatarepresentationandstorage.Theconceptualand
externalschemasprovideindependencefromphysicalstoragedecisionsandlogical
designdecisionsrespectively.Inaddition,aDBMSprovidesefficientstorageand
retrievalmechanisms,includingsupportforverylarries,indexstructuresand
queryoptimization.
Reducedapplicationdevelopmenttime.SincetheDBMSprovidesseveralimpor
tantfunctionsrequiredbyapplications,suchasconcurrencycontrolandcrash
recovery,highlevelqueryfacilities,etc.,onlyapplication-specificcodeneedsto
bewritten.Eventhisisfacilitatedbysuitesofapplicationdevelopmenttools
availablefromvendorsformanydatabasemanagementsystems.
Dataintegrityandsecurity.Theviewmechanismandtheauthorizationfacilities
ofaDBMSprovideapowerfulaccesscontrolmechanism.Further,updatestothe
datathatviolatethesemanticsofthedatacanbedetectedandrejectedbythe
DBMSifusersspecifytheappropriateintegrityconstraints.
Dataadministration.Byprovidingacommonumbrellaforalargecollectionof
datathatissharedbyseveralusers,aDBMSfacilitatesmaintenanceanddata
administrationtasks.AgoodDBAcaneffectivelyshieldend-usersfromthechores
offine-tuningthedatarepresentation,periodicback-upsetc.
Concurrentaccessandcrashrecovery.ADBMSsupportsthenotionofatrans
action,whichisconceptuallyasingleuser'ssequentialprogram.Userscanwrite
transactionsasiftheirprogramswererunninginisolationagainstthedatabase.
TheDBMSexecutestheactionsoftransactionsinaninterleavedfashiontoobtain
goodperformance,butschedulestheminsuchawayastoensurethatcflicting
operationsarenotpermittedtoproceedconcurrently.Further,theDBMSmain
tainsacontinuouslogofthechangestothedata,andifthereisasystemcrash,
itcanrestorethedatabasetoatransaction-consistentstate.Thatis,theactions
ofincompletetransactionsareundone,sothatthedatabasestateftectsonlythe
actionsofcompletedtransactions.Thus,ifeachcompletetransaction,executing
alone,maintainstheconsistencycriteria,thenthedatabasestateafterrecovery
fromacrashisconsistent.
Iftheseadvantagesarenotimportantfortheapplicationathand,usingacollectionof
filesmaybeabettersolutionbecauseoftheincreasedcostandoverheadofpurchasingand
maintainingaDBMS.
3.Whatislogicaldataindependenceandwhyisitimportant?
Answer1.2Logicaldataindependencemeansthatusersareshieldedfromchangesin
thelogicalstructureofthedata,i.e.,changesinthechoiceofrelationstobestored.
Forexample,ifarelationStudents(sid,sname,gpa)isreplacedbyStudentnames(sid,
sname)andStudentgpas(sid,gpa)forsomereason,applicationprogramsthatoperate
ontheStudentsrelationcanbeshieldedfromthischangeby(fciingaviewStu-
dents(sid,sname,gpa)(asthenaturaljoinofStudentnamesandStudentgpas).Thus,
applicationprogramsthatrefertoStudentsneednotbechangedwhentherelationStudentsis
replacedbytheothertworelations.TheonlychangeisthatinsteadofstoringStudentstuples,
thesetuplesarecomputedasneededbyusingtheyficntiafethisistransparenttothe
applicationprogram.
Exercise1.5WhataretheresponsibilitiesofaDBA?
Answer1.5TheDBAisresponsiblefor:
Designingthelogicalandphysicalschemas,aswellaswidely-usedportionsofthe
externalschema.
Securityandauthorization.
Dataavailabilityandrecoveryfromfailures.
Databasetuning:TheDBAisresponsibleforevolvingthedatabase,inparticular
theconceptualandphysicalschemas,toensureadequateperformanceasuser
requirementschange.
Answer1.7Letusdiscussthechoicesinturn.
Thedatadefinitionlanguageisimportantinrepresentinginformationbecauseit
isusedtodescribeexternalandlogicalschemas.
Thedatamanipulationlanguageisusedtoaccessandupdatedata;itisnot
importantforrepresentingthedata.(Ofcourse,thedatamanipulationlanguage
mustbeawareofhowdataisrepresented,anditectsthisintheconstructsthat
itsupports.)
Thebuffermanagerisnotveryimportantforrepresentationbecauseitbrings
arbitrarydiskpagesintomainmemory,independentofanydatarepresentation.
Thedatamodelisfundamentaltorepresentinginformation.Thedatamodel
determineswhatdatarepresentationmechanismsaresupportedbytheDBMS.
Thedatadefinitionlanguageisjustthespecificsetoflanguageconstructsavailable
todescribeanactualapplication'sdataintermsofthedatamodel.
Exercise2.4Acompanydatabaseneedstostoreinformationaboutemployeefie^cteyiti
ssn,withsalaryandphoneasattributes),departments(ideiftcdbydno,withdnameandbudgetas
attributes),andchildrenofemployees(withnameandageasattributes).Employeesworkin
departments;eachdepartmentismanagedbyanemployee;achildmustbeidenfieduniquelyby
namewhentheparent(whoisanemployee;assumethatonlyoneparentworksfbrthecompany)
isknown.Wearenotinterestedininformationaboutachildoncetheparentleavesthecompany.
DrawanERdiagramthatcapturesthisinformation.
salarydname
T
^
-x
-5
E
H
3
«=
r
=
=
r
r
F
.
x
w
w
7
」
Exercise3.14ConsiderthescenariofromExercise2.4,whereyoudesignedanER
diagramfbracompanydatabase.WriteSQLstatementstocreatethecorresponding
relationsandcaptureasmanyoftheconstraintsaspossible.Ifyoucannotcapture
someconstraints,explainwhy.
Answer3.14ThefollowingSQLstatementscreatethecorrespondingrelations.
CREATETABLEEmployees(ssnCHAR(IO),
salINTEGER,
phoneCHAR(13),
PRIMARYKEY(ssn))
CREATETABLEDepartments(dnoINTEGER,
budgetINTEGER,
dnameCHAR(20),
PRIMARYKEY(dno))
CREATETABLEWorksin(ssnCHAR(IO),
dnoINTEGER,
PRIMARYKEY(ssn,dno),
FOREIGNKEY(ssn)REFERENCESEmployees,
FOREIGNKEY(dno)REFERENCESDepartments)
CREATETABLEManages(ssnCHAR(IO),
dnoINTEGER,
PRIMARYKEY(dno),
FOREIGNKEY(ssn)REFERENCESEmployees,
FOREIGNKEY(dno)REFERENCESDepartments)
CREATETABLEDependents(ssnCHAR(10),
nameCHAR(10),
ageINTEGER,
PRIMARYKEY(ssn,name),
FOREIGNKEY(ssn)REFERENCESEmployees,
ONDELETECASCADE)
Exercise5.1Considerthefollowingrelations:
Student(snum:integer,sname:string,major:string,level:string,age:integer)
Class(name:string,meetsat:string,room:stringd:integer)
Enrolled(snum:integer,cname:string)
Faculty(fid:integer,fname:string,deptid:integer)
Themeaningoftheserelationsisstraightforward;forexample,Enrolledhasonerecordper
student-classpairsuchthatthestudentisenrolledintheclass.
WritethefollowingqueriesinSQL.Noduplicatesshouldbeprintedinanyoftheanswers.
1.Findthenamesoffacultymembersforwhomthecombinedenrollmentofthecoursesthatthey
teachislessthanfive.
2.Foreachlevel,printthelevelandtheaverageageofstudentsforthatlevel.
3.ForalllevelsexceptJR,printthelevelandtheaverageageofstudentsforthatlevel.
4.ForeachfacultymemberthathastaughtclassesonlyinroomR128,printthefacultymember's
nameandthetotalnumberofclassessheorhehastaught.
5.Findthenamesofstudentsenrolledinthemaximumnumberofclasses.
6.Findthenamesofstudentsnotenrolledinanyclass.
1.SELECTDISTINCTF.fname
FROMFacultyF
WHERE5>(SELECTCOUNT(E.snum)
FROMClassC,EnrolledE
WHEREC.name=E.cname
ANDC.fid=F.fid)
2.SELECTS.level,AVG(S.age)
FROMStudentS
GROUPBYS.level
3.SELECTS.level,AVG(S.age)
FROMStudentS
WHERES.levelo,JR'
GROUPBYS.level
4.SELECTF.fname,COUNT(*)ASCourseCount
FROMFacultyF,ClassC
WHEREF.fid=C.fid
GROUPBYF.fid,F.fname
HAVINGEVERY(C.room='R128')
5.SELECTDISTINCTS.sname
FROMStudentS
WHERES.snumIN(SELECTE.snum
FROMEnrolledE
GROUPBYE.snum
HAVINGCOUNT(*)>=ALL(SELECTCOUNT(*)
FROMEnrolledE2
GROUPBYE2.snum))
6.SELECTDISTINCTS.sname
FROMStudentS
WHERES.snumNOTIN(SELECTE.snum
FROMEnrolledE)
1.1.ExplainthefollowingtermsIftjeattribute,domain,entity,relationship,one-to-many
relationship,many-to-manyrelationship.
Answer2.1Termexplanations:
Attribute-apropertyordescriptionofanentity.Atoydepartmentemployee
entitycouldhaveattributesdescribingtheemployee\name,salary,andyearsof
service.
Domain-asetofpossiblevaluesforanattribute.
Entity-anobjectintherealworldthatisdistinguishablefromotherobjectssuch
asthegreendragontoy.
Relationship-anassociationamongtwoormoreentities.
Entityset-acollectionofsimilarentitiessuchasallofthetoysinthetoydepart
ment.
Relationshipset-acollectionofsimilarrelationships
One-to-manyrelationship-akeyconstraintthatindicatesthatoneentitycanbe
associatedwithmanyofanotherentity.Anexampleofaone-to-manyrelationship
iswhenanemployeecanworkforonlyonedepartment,andadepartmentcan
havemanyemployees.
Many-to-manyrelationship-akeyconstraintthatindicatesthatmanyofone
entitycanbeassociatedwithmanyofanotherentity.Anexampleofamany-
to-manyrelationshipisemployeesandtheirhobbies:apersoncanhavemany
differenthobbies,andmanypeoplecanhavethesamehobby.
2.Exercise4.2GiventworelationsRIandR2,whereRIcontainsN1tuples,R2con-
tainsN2tuples,andN2>N1>0,givetheminimumandmaximumpossiblesizes(in
tuples)fortheresultingrelationproducedbyeachofthefollowingrelationalalgebra
expressions.Ineachcase,stateanyassumptionsabouttheschemasforR1andR2
neededtomaketheexpressionmeaningful:
(1)R1UR2,(2)RinR2,(3)R1-R2,(4)RlxR2,(5)oa=5(R1),(6)Tra(Rl),
and(7)R1/R2
Aanswer:
ExpressionAssumptionMinMax
R1UR2RIand7?2areunion-compatibleN2N1+N2
Rir\R2RIandR2areunion-compatibleiiN1
R1-H2RIandR2areunion-compatibleiiN1
RIxR2N1*N2N1*N2
Oa=5(Hl)Hlhasanattributenameda(jXI
ira(Rl)RIhasattributea.Nl>01X.
ThesetofattributesofR2isa
R1/R2subsetofthesetofattributesof00
Hl
ThesetofattributesofR\isa
R2JR1subsetofthesetofattributesof0LN2/N1J
R2
Figure4.1AnswertoExercise4.2.
Exercise2.5NotownRecordshasdecidedtostoreinformationaboutmusicianswho
performonitsalbums(aswellasothercompanydata)inadatabase.Thecompany
haswiselychosentohireyouasadatabasedesigner(atyourusualconsultingfeeof
$2500/day).
EachmusicianthatrecordsatNotownhasanSSN,aname,anaddress,and
aphonenumber.Poorlypaidmusiciansoftensharethesameaddress,andno
addresshasmorethanonephone.
EachinstrumentusedinsongsrecordedatNotownhasauniqueidentification
number,aname(eg,guitar,synthesizerflute)andamusicalkey(e.g.,C,B-flat,
E-flat).
EachalbumrecordedontheNotownlabelhasauniqueideiftcationnumber,a
title,acopyrightdate,aformat(e.g.,CDorMC),andanalbumidentifier.
EachsongrecordedatNotownhasatitleandanauthor.
Eachmusicianmayplayseveralinstruments,andagiveninstrumentmaybe
playedbyseveralmusicians.
Eachalbumhasanumberofsongsonit,butnosongmayappearonmorethan
onealbum.
Eachsongisperformedbyoneormoremusicians,andamusicianmayperforma
numberofsongs.
Eachalbumhasexactlyonemusicianwhoactsasitsproducer.Amusicianmay
produceseveralalbums,ofcourse.
Designaconceptualschemaf
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 智慧农业园区开发与运营合作协议
- 事业单位工会活动方案
- 税务顾问服务协议书
- 云计算服务平台建设合同
- 桩基工程施工专业分包规定合同
- 合同付款补充协议书
- 烟草产品购销合同
- 公司商铺租赁合同书
- 独家代理销售合同
- 办公效率提升解决方案实践
- “互联网+”大学生创新创业基础课件
- 活动板房防风加固专项方案
- 数控分度工作台设计概述
- 甘草种植技术课件
- 冀教版英语九年级Unit 5 单词短语预习复习单
- 公司安全生产监督管理办法
- 钢筋工工艺与实习(第二版)课件汇总全书电子教案完整版课件最全幻灯片(最新)课件电子教案幻灯片
- 煤矿从业人员考试题库全答案(word版)
- 最简易的帕累托图制作方法简介PPT通用课件
- 城市轨道交通应急处理课程标准
- (完整版)振幅调制与解调习题及其解答
评论
0/150
提交评论