ER建模及關(guān)系表轉(zhuǎn)換習題2010.doc

ER建模及關(guān)系表轉(zhuǎn)換習題2010.doc

ID:58820707

大?。?54.50 KB

頁數(shù):7頁

時間:2020-10-25

ER建模及關(guān)系表轉(zhuǎn)換習題2010.doc_第1頁
ER建模及關(guān)系表轉(zhuǎn)換習題2010.doc_第2頁
ER建模及關(guān)系表轉(zhuǎn)換習題2010.doc_第3頁
ER建模及關(guān)系表轉(zhuǎn)換習題2010.doc_第4頁
ER建模及關(guān)系表轉(zhuǎn)換習題2010.doc_第5頁
資源描述:

《ER建模及關(guān)系表轉(zhuǎn)換習題2010.doc》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。

1、一、ConsiderthefollowinginformationinanairportdatabaselAnairportisdescribedbyitsnameandthecitythattheairportlocatesatlEachairplanehasaregistrationnumberandthedateofproductionasitsdescriptiveattributeslEachairplanemodelisidentifiedbyamodelnumberandhasacapacityandaweightlAtechnicianischaracterizedby

2、technician_id,hisnameandhisphonenumberlEachairportaccommodatesanumberofairplanemodels,andanairplanemodelmayappearsinseveralairportslEachairplaneisofaspecificmodel,e.g.Boeing737;andforeachmodel,theremaybemorethanoneairplanebeingofitlAnumberoftechniciansworkattheairport,buteachtechnicianworksatonl

3、yoneairport.lEachtechnicianisresponsibleforoneormoreplanemodels,andoneplanemodelhasoneormoretechniciansresponsibleforitlEachairplaneisperiodicallytestedbyanumberoftechnicianstoensurethattheairplaneisstillairworthy.Atechnicianmaytestseveralairplaneseachyear.Itisrequiredthatwhenatechniciantestsana

4、irplane,theairplanemodelthatheisresponsibleforisjustthemodelthattheairplanetestedisof.Theinformation,suchastestnumber,thetestingdate,thetestingresultandthetimespentonthetest,isneededtodescribeatestingoftheairplane(1)DesigntheE/Rdiagramfortheairportdatabaseonthebasisoftheinformationmentionedabove

5、Note:thekeyoftheentities,mappingcardinalityofeachrelationshipandparticipationofeachentitytotherelationshipshouldbedescribedinthediagram..(10points)(2)ConverttheE-Rdiagramtotheproperrelationalschema,andgivetheprimarykeyofeachrelationschemabyunderlines.(10points)Answers:或:(2)(10points)實體airport歸結(jié)為

6、:airport(a-name,city);實體model歸結(jié)為:model(m-num,weight,capacity);聯(lián)系accommodate歸結(jié)為:accommodate(a-name,m-num);實體airplane和聯(lián)系be-of歸結(jié)為:airplane(re-num,date,m-num);實體technician、聯(lián)系work、聯(lián)系test歸結(jié)為:technician(t-id,t-name,phone-num,a-name)test(t-id,re-num,t-num,t-date,time,result)聯(lián)系responsible歸結(jié)為responsible(t

7、-id,m-num)如果technician部分參與到聯(lián)系test中,則如下圖所示:關(guān)系表轉(zhuǎn)換:實體airport歸結(jié)為:airport(a-name,city);實體model歸結(jié)為:model(m-num,weight,capacity);聯(lián)系accommodate歸結(jié)為:accommodate(a-name,m-num);實體airplane和聯(lián)系be-of歸結(jié)為:airplane(re-num,date,m-num);實體technic

當前文檔最多預覽五頁,下載文檔查看全文

此文檔下載收益歸作者所有

當前文檔最多預覽五頁,下載文檔查看全文
溫馨提示:
1. 部分包含數(shù)學公式或PPT動畫的文件,查看預覽時可能會顯示錯亂或異常,文件下載后無此問題,請放心下載。
2. 本文檔由用戶上傳,版權(quán)歸屬用戶,天天文庫負責整理代發(fā)布。如果您對本文檔版權(quán)有爭議請及時聯(lián)系客服。
3. 下載前請仔細閱讀文檔內(nèi)容,確認文檔內(nèi)容符合您的需求后進行下載,若出現(xiàn)內(nèi)容與標題不符可向本站投訴處理。
4. 下載文檔時可能由于網(wǎng)絡波動等原因無法下載或下載錯誤,付費完成后未能成功下載的用戶請聯(lián)系客服處理。