- 6
- 0
- 约9.54千字
- 约 53页
- 2021-07-28 发布于北京
- 举报
Entity Relationship ModelOverviewDatabase design is essentially to decide the set of tables needed tostore all the data in the underlying applications;capture the relationships among data.Design steps: Requirement analysisConceptual database designLogical database designPhysical database design…Data modelingIdentify and understand the business rules that govern dataA student may register for COMP4035 (Database System Implementation) only if the student has passed COMP2016One lab session has at most 45 studentsThe percentage of ‘A’ grades must be between 10%-20%Need a tool to represent these rules in a concise but accurate manner, so that they can be unambiguously understood by information system developers and usersEntity-Relationship Diagram (ER Diagram) is such a toolRepresent rules in terms of entities and their relationshipsProposed by /wiki/Peter_ChenPeter Chen in 1976Entity and entity setAn entity is a real-world object distinguishable from other objects.A person, a pet, a CD, a … An entity has attributes.A person has a name and an address …A pet has a nickname…A CD has an author…An entity set is a set of entities that share the same attributes.A “person entity set”.A “pet entity set”.A “CD entity set”.Entity set examplesNameHKIDAddressAliceR133428(6)KowloonBobP625228(4)Hong KongCandyA252242(7)New Territories IDName1Sam2Lady3BearPetPersonaddressnameHKIDIDnameTo represent an entity setPersonPetaddressHKIDnameEach entity set has a key ? minimal set of attributes whose value uniquely identifies an entityThere could be more than one candidate keys; the one designated is the primary keyEntity set: studentsPersonageemailstudent idnameKeyAttribute typesSimple vs. compositeSingle-valued vs. multi-valuedName vs. phone-numbersDerived vs. non-derivedDate of birth: Non-derivedAge: Derivedmiddlelast-namedate-of-birthfirst-namezip-codestatecityapartment-numberstreet-namestreetstreet-numberHKIDnameaddressPersonphone-numberagemulti-valued attributederived attributeIn Class Ex
您可能关注的文档
- 第2次课第一章原子结构与周期系.pptx
- 专题04控制规划导航避障2014learned stochastic mobility prediction for planning with control uncertainty on unstructured terrain.pdf
- 第5讲怎么评价和诊断交易策略.pdf
- 互联网营销与管理1丁茂.pdf
- 成果报告现代核物理.pptx
- 项目开发详细设计模板.pdf
- 2026年碳资产质押融资项目建议书.docx
- 2026年体动监测传感器项目项目建议书.docx
- 2026年体感互动游戏项目项目建议书.docx
- 2026年体脂分析仪项目项目建议书.docx
最近下载
- 学霸作文里的“骚话公式”(5个).pdf VIP
- 欧姆龙制氧机说明书1C_IM_HAO-3620、3720、3721、3722、3710、3711、3712.pdf VIP
- 基于S7-1200的异步电机速度跟随控制系统设计与实现.doc
- 第五讲量化与编码.ppt VIP
- 无人机飞行管理及应用:无人机飞行的空管需求PPT教学课件.pptx
- 无人机操作技术-无人机自动机场.pptx VIP
- SYT 7388-2017 石油天然气钻采设备 钻井用空气锤和冲击钻头.docx VIP
- 直线定向示范课.ppt
- SYT 7421-2018 石油天然气钻采设备 钻井和修井用管柱自动化处理系统.pdf VIP
- 谢冕评志摩的诗.doc VIP
原创力文档

文档评论(0)