Thiết Kế Cơ Sở Dữ Liệu Bằng Sơ Đồ Quan Hệ

Tài liệu nghiên cứu Database design using entity relationship diagrams, tổng hợp lý thuyết và thực hành, cung cấp kiến thức chuyên sâu về .

Trường đại học

University of West Florida

Chuyên ngành

Computer Science

Người đăng

Ẩn danh

Thể loại

thesis

2023

388
6
0

Phí lưu trữ

75 Point

Mục lục chi tiết

Preface

Introduction

1. Chapter 1: Data, Databases, and the Software Engineering Process

1.1. What Is the Software Engineering Process?

1.2. Entity-Relationship Diagrams and the Software Engineering Life Cycle

1.3. Phase 1: Get the Requirements for the Database

1.4. Phase 2: Specify the Database

1.5. Phase 3: Design the Database

2. Chapter 2: Data and Data Models

2.1. Files, Records, and Data Items

2.2. Moving From 3 × 5 Cards to Computers

2.3. Te Hierarchical Model

2.4. Te Hierarchical Model with a Linked List

2.5. Drawbacks of the Hierarchical Model

2.6. Te Network Model

2.7. Te Relational Model

3. Chapter 3: The Relational Model and Functional Dependencies

3.1. Fundamentals of Relational Database

3.2. Relational Database and Sets

3.3. Non-1NF to 1NF

3.4. Te Second Normal Form

3.5. Non-2NF to 2NF

3.6. Te Tird Normal Form

3.7. Te Equijoin Operation

3.8. Some Functional Dependency Rules

3.9. Te Boyce–Codd Normal Form

4. Chapter 4: The Basic ER Diagram: A Data Modeling Schema

4.1. What Is a Data Modeling Schema?

4.2. What Is an Entity-Relationship Diagram?

4.3. Defning a Database—Some Defnitions: Entity, Relationship, and Attribute

4.4. ER Design Methodology

4.5. A First “Entity-Only” ER Diagram: An Entity with Attributes

4.6. More about Attributes

4.6.1. Te Simple or Atomic Attribute

4.6.2. Te Composite Attribute

4.6.3. Te Multivalued Attribute

4.6.4. Te Derived Attribute

4.7. English Description of the Entity

4.8. ER Design Methodology

4.9. Mapping the Entity Diagram to a Relational Database

5. Chapter 5: Beyond the First Entity Diagram

5.1. Examining an Entity: Changing an Attribute to Be an Entity

5.2. Defning a Relationship for Our New Entity

5.3. ER Design Methodology

5.4. A Preliminary Grammar for ER Diagrams

5.5. Defning a Second Entity

5.6. Does a Relationship Exist?

5.7. Attribute or Relationship?

5.8. ER Design Methodology

6. Chapter 6: Extending Relationships/Structural Constraints

6.1. Te Cardinality Ratio of a Relationship

6.1.1. One to One (1:1)

6.1.2. Many to One (M:1)

6.1.3. One to Many (1:M)

6.1.4. Many to Many (M:N)

6.2. Participation: Full/Partial

6.3. Summary of the Patterns and Relationships

6.4. ER Design Methodology

6.5. Some Examples of Other Relationships

6.5.1. An Example of the One-to-Many Relationship (1:M)

6.5.1.1. Pattern 4–1:M, From the 1 Side, Partial Participation
6.5.1.2. Pattern 2—M(Partial):1, From M Side, Optional Participation

6.5.2. An Example of the Many-to-One Relationship (M:1)

6.5.2.1. Pattern 1—M:1, From the M Side, Full Participation
6.5.2.2. Pattern 3–1:M, From the 1 Side, Full Participation

6.5.3. An Example of the Many-to-Many Relationship (M:N)

6.5.3.1. Pattern 3—M:N, From the M Side, Full Participation
6.5.3.2. Pattern 4—N:M, From the N Side, Partial Participation

6.6. One Final Example

6.6.1. ER Design Methodology

6.6.2. Pattern 1—M:1, From the M Side, Full Participation

6.6.3. Pattern 3–1:M, From the 1 Side, Full Participation

6.7. Mapping Relationships to a Relational Database

6.7.1. Mapping Binary M:N Relationships

6.7.2. Mapping Binary 1:1 Relationships

6.7.3. Mapping Binary 1:N Relationships

7. Chapter 7: The Weak Entity

7.1. Strong and Weak Entities

7.2. Weak Entities and Structural Constraints

7.3. Weak Entities and the Identifying Owner

7.3.1. Another Example of a Weak Entity and the Identifying Owner

7.4. Weak Entities Connected to Other Weak Entities

7.5. Revisiting the Methodology

7.6. Weak Entity Grammar

7.7. Mapping Weak Entities to a Relational Database

8. Chapter 8: Further Extensions for ER Diagrams with Binary Relationships

8.1. Attributes of Relationships

8.2. Relationships Developing into Entities: Te M:N Relationship Revisited

8.3. More Entities and Relationships

8.3.1. More Tan Two Entities

8.3.1.1. Pattern 4—x:y::1:M, From the 1 Side, Partial Participation
8.3.1.2. Pattern 1—x:y::M:1, From the M Side, Full Participation

8.3.2. Adding More Attributes Tat Evolve into Entities

8.4. More Evolution of the Database

8.5. Attributes Tat Evolve into Entities

8.5.1. Recursive Relationships and Structural Constraints

8.5.1.1. One-to-One Recursive Relationship (Partial Participation on Both Sides)
8.5.1.2. One-to-Many Recursive Relationship (Partial Participation on Both Sides)
8.5.1.3. Many-to-Many Recursive Relationship (Partial on Both Sides)

8.6. Te Derived or Redundant Relationship

8.7. Optional: An Alternative ER Notation for Specifying Structural Constraints on Relationships

8.8. Review of the Methodology

8.9. ER Design Methodology

8.10. Mapping Rules for Recursive Relationships

9. Chapter 9: Ternary and Higher-Order ER Diagrams

9.1. Binary or Ternary Relationship?

9.2. Structural Constraints for Ternary Relationships

9.2.1. Many to Many to Many (M1:M2:M3)

9.3. An Example of an n-ary Relationship

9.4. n-ary Relationships Do Not Preclude Binary Relationships

9.5. Methodology and Grammar for the n-ary Relationship

9.5.1. A More Exact Grammar

9.5.1.1. Pattern 3—M:N, From the M Side, Full Participation
9.5.1.2. Pattern 3—k:M, from the k Side, Full Participation (k = 1 or N)
9.5.1.3. Pattern 5 (n-ary)—x:y:z::a:b:c, From the a Side, Full/Partial Participation

9.5.2. Grammar in a Partial Participation, Ternary Relationship with an M1:1:M2 Relationship

9.6. Ternary Relationships From Relationship-Relationship Situations

9.7. n-ary Relationships Tat May Be Resolved into Binary Relationships

9.8. Mapping n-ary Relationships to a Relational Database

9.9. Review of the Methodology

9.10. ER Design Methodology

10. Chapter 10: The Enhanced Entity-Relationship (EER) Model

10.1. What Is a Generalization or Specialization?

10.2. Examples of Generalizations or Specializations

10.3. Methodology and Grammar for Generalization/ Specialization Relationships

10.4. Mapping Rules for Generalizations and Specializations

10.5. Subclasses of Subclasses

10.6. Categories or Union Types

10.6.1. Participation Ratios in Categories or Union Types

10.6.2. Mapping Categories or Union Types When Superclasses Have the Same Primary Keys

10.6.3. Mapping Categories or Union Types When Superclasses Have Diferent Primary Keys

10.7. Final ER Design Methodology

10.8. ER Design Methodology

11. Chapter 11: Relational Mapping and Reverse Engineering ER/EER Diagrams

11.1. Steps Used to Map ER/EER Diagrams to Relational Databases

11.1.1. Reverse Engineering Rule 1. Develop Strong Entities

11.1.2. Reverse Engineering Rule 2. Look for 1:1 and 1:N (1:x) Relationships

11.1.3. Reverse Engineering Rule 2a. Check for Attributes of the 1:x Relationship

11.1.4. Reverse Engineering Rule 3. Look for Weak Entities and Multivalued Attributes

11.1.5. Reverse Engineering Rule 3a. Checking for Weak Entities

11.1.6. Reverse Engineering Rule 3b. Checking for Multivalued Attributes

11.1.7. Reverse Engineering Rule 4. Check for M:N and n-ary Relationships

11.1.8. Reverse Engineering Rule 4a. Check for the Binary Case

11.1.9. Reverse Engineering Rule 4b. Check for the n-ary Case

11.1.10. Reverse Engineering Rule 5. Check for Generalization/Specialization Relationships

11.1.11. Reverse Engineering Rule 5a. Check for Generalization/Specialization Relationships with Disjoint or Overlap Relationships with Total or Partial Participation Constraints

11.1.12. Reverse Engineering Rule 5b. Check for Disjoint Generalization/Specialization Relationships with Single-Predicate- Defned Attributes

11.1.13. Reverse Engineering Rule 5c. Check for Overlap Generalization/Specialization Relationship with More Tan One Flag

11.1.14. Reverse Engineering Rule 6. Check for Shared Subclasses

11.1.15. Reverse Engineering Rule 7. Check for Categories or Union Types

12. Chapter 12: A Brief Overview of the Barker/Oracle-Like Model

12.1. A First “Entity-Only” ER Diagram: An Entity with Attributes

12.2. Attributes in the Barker/Oracle-Like Model

12.2.1. Optional versus Mandatory Attributes

12.3. Relationships in the Barker/Oracle-Like Model

12.4. Structural Constraints in the Barker/ Oracle-Like Model

12.5. Dealing with the Concept of the Weak Entity in the Barker/Oracle-Like Model

12.6. Dealing with the Concept of Multivalued Attributes in the Barker/Oracle-Like Model

12.7. Treatment of Foreign Keys

12.8. Recursive Relationships in the Barker/ Oracle-Like Model

Tóm tắt

I. Tổng Quan Về Thiết Kế Cơ Sở Dữ Liệu Bằng Sơ Đồ Quan Hệ

Thiết kế cơ sở dữ liệu là một bước quan trọng trong phát triển phần mềm. Sơ đồ quan hệ (ER) giúp hình dung cấu trúc dữ liệu một cách rõ ràng và dễ hiểu. Việc sử dụng sơ đồ quan hệ không chỉ giúp các nhà phát triển dễ dàng hơn trong việc quản lý cơ sở dữ liệu mà còn hỗ trợ trong việc tối ưu hóa quy trình phát triển. Theo nghiên cứu, sơ đồ ER là công cụ phổ biến nhất trong thiết kế cơ sở dữ liệu.

1.1. Khái Niệm Về Sơ Đồ Quan Hệ

Sơ đồ quan hệ là một mô hình trực quan hóa các thực thể và mối quan hệ giữa chúng. Nó giúp xác định các thuộc tính của thực thể và cách chúng tương tác với nhau.

1.2. Lợi Ích Của Việc Sử Dụng Sơ Đồ Quan Hệ

Việc sử dụng sơ đồ quan hệ giúp giảm thiểu sai sót trong thiết kế cơ sở dữ liệu. Nó cũng tạo điều kiện thuận lợi cho việc giao tiếp giữa các bên liên quan trong dự án.

II. Những Thách Thức Trong Thiết Kế Cơ Sở Dữ Liệu Bằng Sơ Đồ Quan Hệ

Mặc dù sơ đồ quan hệ mang lại nhiều lợi ích, nhưng việc thiết kế chúng không phải lúc nào cũng dễ dàng. Các nhà phát triển thường gặp khó khăn trong việc xác định các thực thể và mối quan hệ chính xác. Ngoài ra, việc duy trì tính nhất quán và bảo mật trong cơ sở dữ liệu cũng là một thách thức lớn.

2.1. Khó Khăn Trong Việc Xác Định Thực Thể

Nhiều nhà phát triển gặp khó khăn trong việc xác định các thực thể chính trong hệ thống. Điều này có thể dẫn đến việc thiết kế không chính xác và không hiệu quả.

2.2. Vấn Đề Bảo Mật Dữ Liệu

Bảo mật cơ sở dữ liệu là một vấn đề quan trọng. Các sơ đồ quan hệ cần phải được thiết kế sao cho đảm bảo an toàn cho dữ liệu nhạy cảm.

III. Phương Pháp Thiết Kế Cơ Sở Dữ Liệu Bằng Sơ Đồ Quan Hệ Hiệu Quả

Để thiết kế cơ sở dữ liệu hiệu quả, cần có một phương pháp rõ ràng. Các bước trong quy trình thiết kế sơ đồ quan hệ bao gồm xác định yêu cầu, phát triển sơ đồ ER và chuyển đổi sang mô hình quan hệ. Việc áp dụng các phương pháp này sẽ giúp tối ưu hóa quy trình thiết kế.

3.1. Bước Đầu Tiên Xác Định Yêu Cầu

Xác định yêu cầu là bước quan trọng nhất trong thiết kế cơ sở dữ liệu. Điều này bao gồm việc thu thập thông tin từ người dùng và phân tích nhu cầu của họ.

3.2. Phát Triển Sơ Đồ ER

Sau khi xác định yêu cầu, bước tiếp theo là phát triển sơ đồ ER. Điều này bao gồm việc xác định các thực thể, thuộc tính và mối quan hệ giữa chúng.

IV. Ứng Dụng Thực Tiễn Của Sơ Đồ Quan Hệ Trong Thiết Kế Cơ Sở Dữ Liệu

Sơ đồ quan hệ không chỉ là lý thuyết mà còn có nhiều ứng dụng thực tiễn trong thiết kế cơ sở dữ liệu. Chúng được sử dụng rộng rãi trong các hệ thống quản lý dữ liệu, từ các ứng dụng nhỏ đến các hệ thống lớn. Việc áp dụng sơ đồ ER giúp cải thiện hiệu suất và khả năng mở rộng của cơ sở dữ liệu.

4.1. Ví Dụ Về Ứng Dụng Sơ Đồ ER

Nhiều công ty công nghệ lớn đã áp dụng sơ đồ ER trong thiết kế cơ sở dữ liệu của họ. Điều này giúp họ quản lý dữ liệu hiệu quả và giảm thiểu rủi ro.

4.2. Kết Quả Nghiên Cứu Về Sơ Đồ Quan Hệ

Nghiên cứu cho thấy rằng việc sử dụng sơ đồ quan hệ giúp tăng cường khả năng truy xuất dữ liệu và giảm thiểu thời gian phát triển.

V. Kết Luận Về Thiết Kế Cơ Sở Dữ Liệu Bằng Sơ Đồ Quan Hệ

Thiết kế cơ sở dữ liệu bằng sơ đồ quan hệ là một kỹ năng quan trọng trong lĩnh vực công nghệ thông tin. Việc nắm vững các phương pháp và kỹ thuật liên quan sẽ giúp các nhà phát triển tạo ra các hệ thống dữ liệu hiệu quả và an toàn. Tương lai của thiết kế cơ sở dữ liệu sẽ tiếp tục phát triển với sự xuất hiện của các công nghệ mới.

5.1. Tương Lai Của Thiết Kế Cơ Sở Dữ Liệu

Với sự phát triển của công nghệ, thiết kế cơ sở dữ liệu sẽ ngày càng trở nên phức tạp hơn. Các nhà phát triển cần phải cập nhật kiến thức thường xuyên để theo kịp xu hướng.

5.2. Tầm Quan Trọng Của Sơ Đồ Quan Hệ

Sơ đồ quan hệ sẽ tiếp tục đóng vai trò quan trọng trong thiết kế cơ sở dữ liệu, giúp các nhà phát triển dễ dàng hình dung và quản lý dữ liệu.

10/07/2025

Trích đoạn nội dung tài liệu

Database Design Using Entity-Relationship Diagrams Essential to database design, entity-relationship (ER) diagrams are known for their usefulness in data modeling and mapping out clear database designs. Tey are also well- known for being difcult to master. With Database Design Using Entity-Relationship Diagrams, Tird Edition, database designers, developers, and students preparing to enter the feld can quickly learn the ins and outs of data modeling through ER diagramming. Building on the success of the bestselling frst and second editions, this accessible text includes a new chapter on the relational model and functional dependencies.

It also includes expanded chapters on Enhanced Entity-Relationship (EER) diagrams and reverse mapping. It uses cutting-edge case studies and examples to help readers master database development basics and defnes ER and EER diagramming in terms of requirements (end user requests) and specifcations (designer feedback to those requests), facilitating agile database development. Tis book • Describes a step-by-step approach for producing an ER diagram and developing a relational database from it • Contains exercises, examples, case studies, bibliographies, and summaries in each chapter • Details the rules for mapping ER diagrams to relational databases • Explains how to reverse engineer a relational database back to an entity- relationship model • Includes grammar for the ER diagrams that can be presented back to the user, facilitating agile database development The updated exercises and chapter summaries provide the real-world understanding needed to develop ER and EER diagrams, map them to relational databases, and test the resulting relational database. Complete with a wealth of additional exercises and examples throughout, this edition should be a basic component of any database course.

Its comprehensive nature and easy-to-navigate structure make it a resource that students and professionals will turn to throughout their careers. Database Design Using Entity-Relationship Diagrams Tird Edition Sikha Saha Bagui Richard Walsh Earp Tird Edition published 2023 by CRC Press 6000 Broken Sound Parkway NW, Suite 300, Boca Raton, FL 33487–2742 and by CRC Press 4 Park Square, Milton Park, Abingdon, Oxon, OX14 4RN CRC Press is an imprint of Taylor & Francis Group, LLC © 2023 Sikha Saha Bagui and Richard Walsh Earp First edition published by CRC Press 2003 Second edition published by CRC Press 2011 Reasonable eforts have been made to publish reliable data and information, but the author and publisher cannot assume responsibility for the validity of all materials or the consequences of their use. Te authors and publishers have attempted to trace the copyright holders of all material reproduced in this publication and apologize to copyright holders if permission to publish in this form has not been obtained. If any copyright material has not been acknowledged please write and let us know so we may rectify in any future reprint.

Except as permitted under U. Copyright Law, no part of this book may be reprinted, reproduced, transmitted, or utilized in any form by any electronic, mechanical, or other means, now known or hereafer invented, including photocopying, microflming, and recording, or in any information storage or retrieval system, without written permission from the publishers. For permission to photocopy or use material electronically from this work, access www.com or contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood Drive, Danvers, MA 01923, 978–750–8400.

For works that are not available on CCC please contact mpkbookspermissions@tandf.uk Trademark notice: Product or corporate names may be trademarks or registered trademarks and are used only for identifcation and explanation without intent to infringe.1201/9781003314455 Typeset in Minion by Apex CoVantage, LLC Dedicated to my father, Santosh Saha; mother, Ranu Saha; husband, Subhash; sons, Sumon and Sudip; brother, Pradeep Saha; and nieces, Priyashi and Piyali. Dedicated to my late wife, Brenda, and my children, Beryl, Rich, Gen, and Mary Jo. And to my wife, Anne, who encouraged me to update this work and meticulously edited every word. xxvii Chapter 1 Data, Databases, and the Software Engineering Process .4 What Is the Sofware Engineering Process? .5 Entity-Relationship Diagrams and the Sof ware Engineering Life Cycle .1 Phase 1: Get the Requirements for the Database .2 Phase 2: Specify the Database .3 Phase 3: Design the Database .10 Chapter 2 Data and Data Models .2 Files, Records, and Data Items .3 Moving From 3 × 5 Cards to Computers .1 Te Hierarchical Model .1 Te Hierarchical Model with a Linked List .3 Drawbacks of the Hierarchical Model .5 Te Network Model.

28 vii viii • Contents 2.6 Te Relational Model .32 Chapter 3 The Relational Model and Functional Dependencies .2 Fundamentals of Relational Database .3 Relational Database and Sets .5 Non-1NF to 1NF .6 Te Second Normal Form .2 Non-2NF to 2NF .7 Te Tird Normal Form .8 Te Equijoin Operation .9 Some Functional Dependency Rules .10 Te Boyce–Codd Normal Form .69 Chapter 4 The Basic ER Diagram: A Data Modeling Schema .2 What Is a Data Modeling Schema? .1 What Is an Entity-Relationship Diagram?.3 Defning a Database—Some Defnitions: Entity, Relationship, and Attribute .2 ER Design Methodology.4 A First “Entity-Only” ER Diagram: An Entity with Attributes .5 More about Attributes.1 Te Simple or Atomic Attribute .2 Te Composite Attribute .3 Te Multivalued Attribute.4 Te Derived Attribute .6 English Description of the Entity .2 ER Design Methodology.7 Mapping the Entity Diagram to a Relational Database. 104 Chapter 5 Beyond the First Entity Diagram .2 Examining an Entity: Changing an Attribute to Be an Entity .3 Defning a Relationship for Our New Entity .1 ER Design Methodology.4 A Preliminary Grammar for ER Diagrams .5 Defning a Second Entity .6 Does a Relationship Exist?.7 Attribute or Relationship? .1 ER Design Methodology. 128 x • Contents Chapter 6 Extending Relationships/Structural Constraints .2 Te Cardinality Ratio of a Relationship .1 One to One (1:1) .2 Many to One (M:1) .3 One to Many (1:M) .4 Many to Many (M:N) .3 Participation: Full/Partial .5 Summary of the Patterns and Relationships .6 ER Design Methodology.6 Some Examples of Other Relationships.1 An Example of the One-to-Many Relationship (1:M) .1 Pattern 4–1:M, From the 1 Side, Partial Participation .2 Pattern 2—M(Partial):1, From M Side, Optional Participation .2 An Example of the Many-to-One Relationship (M:1) .1 Pattern 1—M:1, From the M Side, Full Participation .2 Pattern 3–1:M, From the 1 Side, Full Participation .3 An Example of the Many-to-Many Relationship (M:N).1 Pattern 3—M:N, From the M Side, Full Participation .2 Pattern 4—N:M, From the N Side, Partial Participation .7 One Final Example .1 ER Design Methodology.2 Pattern 1—M:1, From the M Side, Full Participation .3 Pattern 3–1:M, From the 1 Side, Full Participation .8 Mapping Relationships to a Relational Database .1 Mapping Binary M:N Relationships .2 Mapping Binary 1:1 Relationships .3 Mapping Binary 1:N Relationships. 178 Chapter 7 The Weak Entity .2 Strong and Weak Entities .3 Weak Entities and Structural Constraints .4 Weak Entities and the Identifying Owner .1 Another Example of a Weak Entity and the Identifying Owner.5 Weak Entities Connected to Other Weak Entities .6 Revisiting the Methodology .7 Weak Entity Grammar .8 Mapping Weak Entities to a Relational Database.

200 Chapter 8 Further Extensions for ER Diagrams with Binary Relationships .2 Attributes of Relationships .3 Relationships Developing into Entities: Te M:N Relationship Revisited .4 More Entities and Relationships .1 More Tan Two Entities .1 Pattern 4—x:y::1:M, From the 1 Side, Partial Participation .2 Pattern 1—x:y::M:1, From the M Side, Full Participation .2 Adding More Attributes Tat Evolve into Entities .5 More Evolution of the Database .6 Attributes Tat Evolve into Entities .1 Recursive Relationships and Structural Constraints .1 One-to-One Recursive Relationship (Partial Participation on Both Sides) .2 One-to-Many Recursive Relationship (Partial Participation on Both Sides) .3 Many-to-Many Recursive Relationship (Partial on Both Sides) .9 Te Derived or Redundant Relationship .10 Optional: An Alternative ER Notation for Specifying Structural Constraints on Relationships .11 Review of the Methodology .1 ER Design Methodology.12 Mapping Rules for Recursive Relationships. 238 Chapter 9 Ternary and Higher-Order ER Diagrams .2 Binary or Ternary Relationship? .3 Structural Constraints for Ternary Relationships .1 Many to Many to Many (M1:M2:M3).4 An Example of an n-ary Relationship .5 n-ary Relationships Do Not Preclude Binary Relationships .6 Methodology and Grammar for the n-ary Relationship .1 A More Exact Grammar .1 Pattern 3—M:N, From the M Side, Full Participation .2 Pattern 3—k:M, from the k Side, Full Participation (k = 1 or N) .3 Pattern 5 (n-ary)—x:y:z::a:b:c, From the a Side, Full/Partial Participation .2Grammar in a Partial Participation, Ternary Relationship with an M1:1:M2 Relationship .7 Ternary Relationships From Relationship-Relationship Situations .8 n-ary Relationships Tat May Be Resolved into Binary Relationships.9 Mapping n-ary Relationships to a Relational Database .10 Review of the Methodology .1 ER Design Methodology. 263 Chapter 10 The Enhanced Entity-Relationship (EER) Model .2 What Is a Generalization or Specialization? .4 Examples of Generalizations or Specializations .5 Methodology and Grammar for Generalization/ Specialization Relationships .6 Mapping Rules for Generalizations and Specializations .7 Subclasses of Subclasses .8 Categories or Union Types .1 Participation Ratios in Categories or Union Types .2 Mapping Categories or Union Types When Superclasses Have the Same Primary Keys .3 Mapping Categories or Union Types When Superclasses Have Diferent Primary Keys .9 Final ER Design Methodology .1 ER Design Methodology. 298 Chapter 11 Relational Mapping and Reverse Engineering ER/EER Diagrams .2 Steps Used to Map ER/EER Diagrams to Relational Databases .1 Reverse Engineering Rule 1.

Develop Strong Entities.2 Reverse Engineering Rule 2. Look for 1:1 and 1:N (1:x) Relationships .3 Reverse Engineering Rule 2a. Check for Attributes of the 1:x Relationship .4 Reverse Engineering Rule 3. Look for Weak Entities and Multivalued Attributes .5 Reverse Engineering Rule 3a.

Checking for Weak Entities .6 Reverse Engineering Rule 3b. Checking for Multivalued Attributes .7 Reverse Engineering Rule 4. Check for M:N and n-ary Relationships .8 Reverse Engineering Rule 4a. Check for the Binary Case .9 Reverse Engineering Rule 4b.

Check for the n-ary Case .10 Reverse Engineering Rule 5. Check for Generalization/Specialization Relationships.11 Reverse Engineering Rule 5a. Check for Generalization/Specialization Relationships with Disjoint or Overlap Relationships with Total or Partial Participation Constraints.12 Reverse Engineering Rule 5b. Check for Disjoint Generalization/Specialization Relationships with Single-Predicate- Defned Attributes .13 Reverse Engineering Rule 5c.

Check for Overlap Generalization/Specialization Relationship with More Tan One Flag.14 Reverse Engineering Rule 6. Check for Shared Subclasses .15 Reverse Engineering Rule 7. Check for Categories or Union Types .324 Chapter 12 A Brief Overview of the Barker/Oracle-Like Model .2 A First “Entity-Only” ER Diagram: An Entity with Attributes .3 Attributes in the Barker/Oracle-Like Model .1 Optional versus Mandatory Attributes .4 Relationships in the Barker/Oracle-Like Model .5 Structural Constraints in the Barker/ Oracle-Like Model .6 Dealing with the Concept of the Weak Entity in the Barker/Oracle-Like Model .7 Dealing with the Concept of Multivalued Attributes in the Barker/Oracle-Like Model .8 Treatment of Foreign Keys .9 Recursive Relationships in the Barker/ Oracle-Like Model. 347 Preface Data modeling and database design have undergone signifcant evolu- tion in recent years.

Today, the relational data model and the relational database system dominate business applications. Te relational model has allowed the database designer to focus on the logical and physical char- acteristics of a database separately. In this book, we concentrate on tech- niques for database design with a very strong bias for relational database systems using the ER (entity-relationship) approach for conceptual model- ing (solely a logical implementation). INTENDED AUDIENCE Tis book is intended to be used for data modeling by database practitio- ners and students.

It is also intended to be used as a supplemental text in database courses, systems analysis and design courses, and other courses that design and implement databases. Many present-day database and sys- tems analysis and design books limit their coverage of data modeling. Tis book not only increases the exposure to data modeling concepts, but also presents a step-by-step approach to designing an ER diagram and devel- oping a relational database from it.

Nội dung được bảo vệ bản quyền — Tải xuống đầy đủ

Tài liệu có tiêu đề Thiết Kế Cơ Sở Dữ Liệu Bằng Sơ Đồ Quan Hệ cung cấp một cái nhìn tổng quan về cách thiết kế cơ sở dữ liệu hiệu quả thông qua việc sử dụng sơ đồ quan hệ. Nó nhấn mạnh tầm quan trọng của việc xác định các thực thể, thuộc tính và mối quan hệ giữa chúng, giúp người đọc hiểu rõ hơn về cách tổ chức và quản lý dữ liệu. Bằng cách áp dụng các nguyên tắc thiết kế này, người dùng có thể tối ưu hóa hiệu suất của cơ sở dữ liệu, giảm thiểu sự trùng lặp dữ liệu và cải thiện khả năng truy xuất thông tin.

Để mở rộng kiến thức của bạn về lĩnh vực này, bạn có thể tham khảo tài liệu Luận văn thạc sĩ nghiên cứu phụ thuộc mạnh trong cơ sở dữ liệu, nơi cung cấp cái nhìn sâu sắc về các khái niệm phụ thuộc trong thiết kế cơ sở dữ liệu. Những tài liệu này sẽ giúp bạn có thêm nhiều góc nhìn và kiến thức bổ ích trong việc phát triển và quản lý cơ sở dữ liệu của mình.