Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 13 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
13
Dung lượng
68 KB
Nội dung
INFM 603 – Information Technology and Organizational Context Lecture 8 Entity Relationship Diagrams 2 Entity • “An entity is a business object that represents a group, or category of data.” 1 • Do we know a similar concept? 1) Stephens, R.K. and Plew. R.R., 2001. Database Design. SAMS, Indianapolis , IN. 3 Attribute • “An attribute is a sub-group of information within an entity.” 1 • Do we know a similar concept? 1) Stephens, R.K. and Plew. R.R., 2001. Database Design. SAMS, Indianapolis , IN. 4 Entity Relationship Models • Mandatory Relationships • Optional Relationships • Many-to-Many Relationships • One-to-Many Relationships • One-to-One Relationships • Recursive Relationships 5 Mandatory, Many-to-Many INSTRUCTOR STUDENT INSTRUCTOR STUDENT 6 Optional, Many-to-Many DEPARTMENT STUDENT DEPARTMENT STUDENT 7 Optional/Mandatory, Many-to-Many INSTRUCTOR SKILL INSTRUCTOR SKILL 8 Optional/Mandatory, One-to-Many PRODUCT VENDOR PRODUCT VENDOR 9 Mandatory, One-to-One AUTOMOBILE ENGINE AUTOMOBILE ENGINE 10 Recursive EMPLOYEE supervises is supervised by [...]...Resolving Many-to-Many Relationships • Many-to-many relationships should be avoided We can resolve a many-to-many relationship by dividing it into two one-tomany relationships 11 Resolving Many-to-Many Relationships SALES ORDERS SALES ORDERS INV ITEMS ORDER ITEMS INV ITEMS 12 Example (ER Diagram) CUSTOMERS CLERKS . INFM 603 – Information Technology and Organizational Context Lecture 8 Entity Relationship Diagrams 2 Entity • “An entity is a business object that represents a group, or category of data.” 1 • Do. Models • Mandatory Relationships • Optional Relationships • Many-to-Many Relationships • One-to-Many Relationships • One-to-One Relationships • Recursive Relationships 5 Mandatory, Many-to-Many INSTRUCTOR. Many-to-Many Relationships • Many-to-many relationships should be avoided. We can resolve a many-to-many relationship by dividing it into two one-to- many relationships. 12 Resolving Many-to-Many Relationships SALES