欢迎来到天天文库
浏览记录
ID:61746889
大小:565.50 KB
页数:48页
时间:2021-03-17
《数据库系统基础教程第四章答案..doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、……………………………………………………………最新资料推荐…………………………………………………SolutionsChapter 44.1。14。1。2a)b)48/48……………………………………………………………最新资料推荐…………………………………………………c)In cweassumethataphoneandaddress canonlybelongtoa singlecustomer(1—m relationshiprepresentedbyarrow into customer)。48/48……………………………………………………
2、………最新资料推荐…………………………………………………d)Indweassumethatanaddresscanonly belong toonecustomerandaphonecan existatonlyoneaddress。If themultiplicityofaboverelationshipswerem-to—n,theentityset becomesweakandthekeyssNoofcustomerswillbeneededaspartofthecompositekeyof theentity set。In c&d,we
3、convertattributesphones andaddressestoentitysets.Sinceentitysetsoften becomerelationsinrelational design,we mustconsidermoreefficientalternatives。 Insteadofqueryingmultipletables wherekey valuesare duplicated, wecanalsomodifyattributes:(i)Phonesattribute canbeconvertedintoHo
4、mePhone,OfficePhoneandCellPhone。 (ii)Amultivaluedattributesuchas aliascanbekept asanattributewherea singlecolumncan beusedin relationaldesigni。e.concatenateall values.SQL allows aquery"like ’%Junius%'"to search themultiple valuesin acolumnalias。48/48……………………………………………………………最新
5、资料推荐…………………………………………………4。1。34.1.4 a)48/48……………………………………………………………最新资料推荐…………………………………………………b)c)Therelationship"played"betweenTeamsandPlayersissimilarto relationship ”plays"between TeamsandPlayers. 4.1。548/48……………………………………………………………最新资料推荐…………………………………………………4.1.6Theinformation ab
6、outchildren can be ascertainedfrom motherOfand fatherOfrelationships.Attribute ssNoisrequiredsincenamesare notunique.48/48……………………………………………………………最新资料推荐…………………………………………………4.1。748/48……………………………………………………………最新资料推荐…………………………………………………48/48……………………………………………………………最新资料推荐…………………………………
7、………………4。1.8a)(b)48/48……………………………………………………………最新资料推荐…………………………………………………4.1。9AssumptionsA Professoronlyworksin atmostonedepartment。Acoursehasatmost oneTA.Acourse isonlytaught byoneprofessorand offeredbyonedepartment.Studentsand professors have beenassigneduniqueemailids.A cours
8、eisuniquelyidentified bythecourseno,sectionno,andsemester (e。g.cs157—3sprin
此文档下载收益归作者所有