2016年春-數(shù)據(jù)庫原理與實用技術(shù)實驗.期末大作業(yè)-張云春_第1頁
2016年春-數(shù)據(jù)庫原理與實用技術(shù)實驗.期末大作業(yè)-張云春_第2頁
2016年春-數(shù)據(jù)庫原理與實用技術(shù)實驗.期末大作業(yè)-張云春_第3頁
免費預(yù)覽已結(jié)束,剩余1頁可下載查看

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)

文檔簡介

PAGEPAGE6《數(shù)據(jù)庫原理與實用技術(shù)實驗》2016年期末大作業(yè)項目任課教師:張云春、劉宇GOAL:Thegoalofthisprojectistoprovidearealisticexperienceintheconceptualdesign,logicaldesign,implementation,operation,andmaintenanceofarelationaldatabaseandassociatedapplications.First,Ishalldescribetheapplication,thenthecategoriesofrequirements,andthensomesuggestionsonhowdeeplyyouneedtogoineachcategory.Arealprojectofthissortwouldrequireasubstantialdevelopmentteamworkingforseveralmonths(ormore).Youwilldothisaloneoverseveralweeks.Ihavechosentogoindividualratherthangroupprojectsbecausethegoalofthisprojectisforyoutogainapersonalappreciationofthedepthandbreadthofissuesthatgointothedesignofadatabaseapplication,ratherthantohave youspecializeinjustoneaspect(andrelyonothersfortherest).TheprojectcangowellbeyondtheminimalrequirementsIoutlineattheend.Iencouragesuchextensions.Theycouldturnintoaseniordesignprojectorotherindependentwork.要求:業(yè)項目報告中的詳細(xì)要求。5張,否則認(rèn)為設(shè)計失敗。20SQLE-R圖(使用專業(yè)工具繪制基數(shù)(cardinality;實體與屬性的基數(shù)可以不寫,但是在分析時必須明確哪NULLE-R轉(zhuǎn)換所對應(yīng)的轉(zhuǎn)換規(guī)則(6條轉(zhuǎn)換規(guī)則。最后,附上相關(guān)的設(shè)計總結(jié)與心得體會。項目相關(guān)內(nèi)容說明PackageDeliveryCompanyDatabaseRequirements:ApplicationdescriptionTheapplicationisdesignedtomanagepackagedeliverycompany(similar順豐,申通,圓通,中通,EMS等).Thecompanyneedstokeeptrackofpackagesshippedandtheircustomers.Tofindoutmoreaboutthisapplication,thinkaboutanyexperiencesyoumayhavehadshippingpackagesandreceivingpackages,andbrowseshipperwebsites.Inourhypotheticalcompany,themanagerassignedtosolicitdatadesignproposalsisnotverycomputerliterateandisunabletoprovideaverydetailedspecification.Hereareafewpointstoconsider:Therearedifferentkindsofservicepossiblybaseduponthetypepackage(flatenvelop,smallbox,largerboxes,etc.),theweightofthepackage,andthetimelinessofdelivery(overnight,secondday,longer).Somecustomershaveacontractwiththeshipperandbilltheirshipmentstoanaccountnumber.Theyarebilledmonthly.Othercustomersareinfrequentcustomersandpaywithacreditcard.Certainshipmentsareprepaid,asismightbethecaseofsomeoneisreturningsomethingthatwaspurchasedbyphoneorInternet(e.g.returningclothesthatdon’tfit,orreturningmalfunctioningelectronics).Forthemostpart,theshippingcompanydoesnotcarewhatisbeingshipped.However,therearecaseswhereitmatters.Someexamplesinclude:hazardousmaterialsinternationalshipments,forwhichacustomsdeclarationthecontentsandtheirvalueisneededThecompanyneedstotrackthetimethecustomerdropsitoff(oritispickedupbythecompany)untilthetimeitisdeliveredandsignedfor.Takealookattheonlinetrackingofferedbyvariousshippingcompaniestogetanideaofhowthisserviceworks.Ifyouarehavingsomethingshippedtoyou,you’llfindyoucangeteverylittledetailofwherethepackageis,whereithasbeen,andtowhereitiscurrentlyheaded.Beyondwhatthecustomersees,thecompanyitselfneedstoknowonwhichtruckorplaneorwarehousethepackageisatanypointintime.Trackingisnotjustan“inthepresent”issue.Thecompanymaywanttolookbackintimeandfindoutwherethepackagewasyesterday,forexample.Itmayalsowanttolookatdatafromthestandpointofatruckorwarehouse.Thereareotheraspectstotheoperationofthecompanybesidespackagetrackingsuchasroutingoftrucksandplanes,theassignmentofstafftothem,etc.Forthisassignment,we’llconsideronlythepackagehandlingandbillingaspectsofthedatabase.基于如上的分析,要求每位同學(xué)給出完整的需求分析,并撰寫“需求分析”文檔。上面的需求有的可以推導(dǎo)出實體、屬性等;有的則可以作為功能語句(如觸發(fā)器、存儲過程、索引等)來實現(xiàn),需要在分析時進行說明。DataGeneration:Forsimplicity,thedesigndoesnotrequireperfectlyrealisticdatasothatyoudonthavetoensurethat.However,youshouldstriveforagooddegreerealisminyourdata.Notethecommentsoncollaborationbelowandthatsharingdatawithothersisacceptableaslongasappropriatecreditisgiventoyoursource.Thefollowingoutlinesmayhelpyouwithyourdesign:E-RModelConstructanE-Rdiagramrepresentingtheconceptualdesignofdatabase.Atminimumyoumustincludealltheentityandrelationshipsetsimpliedbythishandout.Youmaygobeyondtheminimum.Rememberthatthemanagerwhodefinedthespecificationsisnotcomputerliteratesothespecificationsshouldnotbeviewedasnecessarilybeingpreciseandcomplete.Besuretoidentifyprimarykeys,relationshipcardinalities,etc.RelationalModeAftercreatinganinitialrelationaldesignfromyourE-Rdesign,refinebasedontheprinciplesofrelationaldesign(Chapter6).Createtherelations(Tables)inSQLServerdatabase.Createindicesandconstraintsasappropriate.Ifasyourefineyourdesign,youdiscoverflawsintheE-Rdesign,backandchangeit.YourfinalE-Rdesignmustbeconsistentwithyourrelationaldesign.PopulateRelationsIncludeenoughdatatomakeanswerstoyourqueriesinterestingnontrivialfortestpurposes.Atleast20rowsaresupposedtobeinsertedineachtable.(Optional)Youmayfindithelpfultowriteaprogramtogeneratetestdataorcollectdatafromarealpackagedeliverycompany.Queries:Youshouldrunanumberoftestqueriestoseethatyouhaveloadedyourdatabaseinthewayyouintended.Thequerieslistedbelowarethosethatyourclients(themanagersfromthepackagedeliverycompany)findofinterest.Theymayprovidefurtherhintsaboutdatabasedesign,sothinkaboutthemattheoutsetofyourworkonthisproject.Assumetruck9527isdestroyedinacrash.Findallcustomerswhohadapackageonthattruckatthetimeofthecrash.Findallrecipientshadapackageonthattruckatthetimeofthecrash.Findthelastsuccessfuldeliverybythattruckpriortothecrash.Findthecustomerwhohasshippedthemostpackagesinthepastyear.Findthecustomerwhohasspentthemostmoneyonshippingintheyear.Findthecitywiththemostcustomers.Findthosepackagesthatwerenotdeliveredwithinthepromisedtime.Generatethebillforeachcustomerforthepastmonth.Considerseveraltypesofbills.Asimplebill:withcustomer,address,andamountowed.Abilllistingchargesbytypeofservice.Anitemizebillinglistingeachindividualshipmentandchargesforit.Customersliketheirbillstobereadable.WhiletheclientwillacceptarelationaltablecomingfromSQLServerasthebill,itwouldbe tohaveagood-lookingbill.Interfaces(OPTIONAL):Thereareseveraltypesofuserswhoaccessthedatabase,andseveralapplicationsthatrunontheirown.Thedatabaseadministrator(you)mayuseSQLeitherviathelineorSQLDeveloper.Customerserviceneedsalookupapplicationthroughmen

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論