- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Introduction to Database
Introduction to Database CHAPTER 2 ENTITY-RELATIONSHIP MODEL Contents Chapter 1: Introduction PART 1 DATA MODELS Chapter 2: Entity-Relationship Model Chapter 3: Relational Model PART 2 RELATIONAL DATABASES Chapter 4: SQL Chapter 5: Other Relational Languages Chapter 6: Integrity and Security Chapter 7: Relational Database Design PART 4 DATA STORAGE AND QUERYING Chapter 11: Storage and File Structure Chapter 12: Indexing and Hashing PART 1: DATA MODELS Data Model: Is a collection of conceptual tools for describing Data, Data relationships, Data semantics, and Consistency constraints The tools Entity-Relationship Model (Chapter 2) Relational Model (Chapter 3) Object-Oriented Data Model (Chapter 8) Object-Relational Data Model (Chapter 9) … PART 1: Entity-Relationship Model (Chapter 2) Relational Model (Chapter 3) 2.1 Basic Concepts A database can be modeled as: A collection of entities (objects), e.g. Students, Department Relationship among entities (objects), e.g. Major-In E.g. Joni major-in IM Entity-Relationship (E-R) Data Model: Entity sets Relationship sets Attributes Semantic Data Model: Representation of the meaning of the data Mapping the real-world enterprise onto a conceptual schema E.g. Fig. 2.22: E-R diagram for a banking enterprise, p.62 E-R Diagram for a Banking Enterprise, p.62 Example: Banking Database Banking Database: consists 6 relations: branch (branch-name, branch-city, assets) customer (customer-name, customer-street, customer-only) account (account-number, branch-name, balance) loan (loan-number, branch-name, amount) depositor (customer-name, account-number) borrower (customer-name, loan-number) Example: Banking Database (cont.) Example: Banking Database (cont.) Example: Banking Database (cont.) 2.1.1 Entity Sets A database can be modeled as: a collection of entities, and relationship among entities. Entity: is an object that exists and is distinguishable from other objects. E
文档评论(0)