0% found this document useful (0 votes)
133 views13 pages

Entity Relationship Diagrams: INFM 603 - Information Technology and Organizational Context

This document discusses entity relationship diagrams and their components. It defines entities as business objects that represent data categories and attributes as subgroups of information within entities. It describes different types of relationships between entities like mandatory, optional, one-to-one, one-to-many, many-to-many, and recursive. Many-to-many relationships should be avoided by dividing them into two one-to-many relationships connected by a joining entity. Examples of different relationship types and resolving a many-to-many relationship are provided.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
133 views13 pages

Entity Relationship Diagrams: INFM 603 - Information Technology and Organizational Context

This document discusses entity relationship diagrams and their components. It defines entities as business objects that represent data categories and attributes as subgroups of information within entities. It describes different types of relationships between entities like mandatory, optional, one-to-one, one-to-many, many-to-many, and recursive. Many-to-many relationships should be avoided by dividing them into two one-to-many relationships connected by a joining entity. Examples of different relationship types and resolving a many-to-many relationship are provided.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 13

INFM 603 Information Technology and Organizational Context Lecture 8

Entity Relationship Diagrams

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.

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.

Entity Relationship Models


Mandatory Relationships Optional Relationships Many-to-Many Relationships One-to-Many Relationships One-to-One Relationships Recursive Relationships

Mandatory, Many-to-Many
INSTRUCTOR STUDENT

INSTRUCTOR

STUDENT

Optional, Many-to-Many
DEPARTMENT STUDENT

DEPARTMENT

STUDENT

Optional/Mandatory, Many-to-Many
INSTRUCTOR SKILL

INSTRUCTOR

SKILL

Optional/Mandatory, One-to-Many
PRODUCT VENDOR

PRODUCT

VENDOR

Mandatory, One-to-One
AUTOMOBILE ENGINE

AUTOMOBILE

ENGINE

Recursive
EMPLOYEE supervises

is supervised by

10

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 INV. ITEMS

SALES ORDERS

ORDER ITEMS

INV. ITEMS

12

Example (ER Diagram)


CUSTOMERS CLERKS

SALES ORDERS

ORDER ITEMS

INV. ITEMS

13

You might also like