Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 5 Database Design

Similar presentations


Presentation on theme: "Chapter 5 Database Design"— Presentation transcript:

1 Chapter 5 Database Design

2 To view this clips Database & SQL
4QIeZaPeM Database 6lbcc7kLk xqSJAj6U MySQL Workbench umYKqKaF0 Normalization 1NF: nyAehrrSY 2NF: nyAehrrSY 3NF: wcWQA7mP8 4NF: rpI3W8mdI LYV7WSHM r3DgS3rA

3 Objectives You will learn how to design a new database

4 Agenda Conceptual Model Physical Model Entity-Relationship Model
Relational Model

5 1. Conceptual Model Entity-Relationship Model

6 How to design a data structure
Database are often designed by database administrators (DBAs) or design specialists.

7 The six basic steps for designing a data structure
Step 1: Identify the data elements Step 2: Subdivide each element into its smallest useful components Step 3: Identify the tables and assign columns Step 4: Identify the primary and foreign keys Step 5: Review whether the data structure is normalized Step 6: Identity the indexs

8 An invoice that can be used to identify data elements

9 Data elements

10 How to subdivide the data elements

11 How to identify the tables and assign columns

12 How to identify primary and foreign keys

13 How to identify primary and foreign keys

14 How to enforce the relationships between tables
การดำเนินการที่จะละเมิด กฏความคงสภาพของการอ้างอิง Referential Integrity Rule

15 Referential Integrity Rule

16 CASE Mountain View Community Hospital

17

18 Business Functions

19 Preliminary Enterprise Data Model

20 Two database tables from Mountain View Community Hospital

21 Partial Patient Bill

22 Context Diagram Example

23 Modeling Data in Organization
Business rules, the foundation of data models, are derived from policies, procedures, events, functions, and other business objects, and they state constraints on the organization. Business rules represent the language and fundamental structure of an organization (Hay, 2003). Business rules formalize the understanding of the organization by organization owners, managers, and leaders with that of information systems architects. Business rules are important in data modeling because they govern ow data are handled and stored Examples of basic business rules are data names and definitions.

24 E-R Model E-R model remains the mainstream approach for conceptual data modeling E-R model is most used as a tool for communication between database designers and end user during the analysis phase of database development E-R model was introduced by Chen (1976) and was extended by Chen and others, for example, Teorey et al. (1986), Storey (1991), Song et al. (1995)

25 Example E-R Diagram

26 The important clear define, as metadata, each entity

27 Business Rules

28 E-R Model Notation

29 Modeling Entities and Attributes

30 Entity Type Employee with Two Instances

31 Attributes Each entity type has a set of attributes associated with it. An attribute is a property or characteristic of an entity type that is of interest to the organization.

32 Entity type: Student

33 Relationships type and instances

34 Instances showing date completed

35 References Murach, J. (2015). Murach’s MySQL. 2nd edition. Mike Murach & Associates, Inc. Hoffer, J. A., Ramesh, V., and Topi, H. (2013). Modern Database Management. Eleventh edition. PEARSON.

36 Continue on part 2


Download ppt "Chapter 5 Database Design"

Similar presentations


Ads by Google