Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Documenting Entity Relationship Diagram (Data Modeling)

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 20

Documenting Entity relationship Diagram (Data

Modeling)
Data model:
• Provides detail information to be stored
• Is of primary use when the final product is the
generation of computer software for an
application.
• Is an abstract model that documents and
organizes the business data for
communication between team members
• Is used as a plan for developing applications,
specifically how data are stored and accessed.
Cont …

• Is a way finding tool for both business and IT


professionals, which uses a set of symbols and text:
– to precisely explain a subset of real
information
• to improve communication within the
organization and thereby lead to a more flexible
and stable application environment.
• Determines the structure of data.
• Typical applications of data models include database
models, design of information systems and enabling
exchange of data.
Entity – Relationship Diagram (ERD)

• Is an abstract way to describe a


database.
• Usually starts with a relational
database, stores data in tables.
• Is a visual representation of different
data using conventions that
– describe how these data are related to
each other.
• For example, the elements writer, novel, and
consumer may be described using ERD as follows:
ER Diagrams Usage
• able to describe just about any system,
• In general, it is mostly associated with
complex databases, used in software
engineering and IT networks.
• In particular, are frequently used during the
design stage of a development process
–to identify different system elements
and their relationships with each
other.
• For example: an inventory software
used in a retail shop will have a
database that monitors elements
such as purchases, item, item-type,
item-source and item-price.
Rendering this information through
an ER diagram would be something
like this:
Symbols of ERD:

Entity Weak Entity

Attribute Multi valued Derived Attribute

Relationship Weak Relationship


Basic elements of ER Diagram?

• Entity: Strong Vs Weak, etc


–Represented in ERD by rectangle,
named as nouns
• Attribute?
–Represented in ERD by ovals
– What are the different
types of attributes?
Simple/single

Composite
Multi-valued

Derived
• Primary key
– In ERD PK is represented by underlined attribute
Example:
• Relationship: d/t types
– Represented in ERD by diamonds,
named as verbs

– Example: Launch & Eats


Recursive

Customer Submits Order

Weak
• Example: develop ERD for Student and Employee
Develop ERD for the
following related entities.
Include all the necessary
attributes and specify their
relationships
Customer, Order, Item, Seller
Exercise
• Think of a database, identify 3 related entities,
their attributes and relationships

Note: the entities, attributes and relationships


must contain all types
Assignment on ERD: 30%
1. Identify the database entities and
their relationships.
2. Specify the attributes of each entity
1. should be full and complete
2. Should contain the different types
3. Assign primary key
4. Develop ERD for the database

You might also like