Professional Documents
Culture Documents
What is ER Diagram?
ER Diagram stands for Entity Relationship Diagram, also known as ERD is a diagram
that displays the relationship of entity sets stored in a database. In other words, ER
diagrams help to explain the logical structure of databases. ER diagrams are created
based on three basic concepts: entities, attributes, and relationships.
ER Diagrams contain different symbols that use rectangles to represent entities,
ovals to define attributes and diamond shapes to represent relationships.
At first look, an ER diagram looks remarkably similar to the flowchart. However, ER
Diagram includes many specialized symbols, and its meanings make this model
unique. The purpose of ER Diagram is to represent the entity framework
infrastructure.
EXAMPLE:
ER DIAGRAMS SYMBOLS & NOTATIONS:
1 ENTITY
2 WEAK ENTITY
3 ATTRIBUTE
4 PRIMARY
ATTRIBUTE
5 PARTIAL
ATTRIBUTE
6 MULTI-VALUED
ATTRIBUTE
7 RELATIONSHIP
8 WEAK-
RELATIONSHIP
Entities
Attributes
Relationships
Online Shopping System ER Diagram /Entity
Relationship Diagram:
PROJECT NAME: Online Shopping system
OBJECTIVE: To make a project based on online
shopping system by using My sql (Oracle).
GOAL:
I have choosen online shopping system to create my project.
To make a project based on online shopping system by using
my sql. This project mainly based on database. So that our
principle goal is to connect database with sql
DESCRIPTION:
Any member can register and view available products.
Only registered member can purchase multiple products
regardless of quantity.
Can contact admin page is available to contact Admin for
queries.
There are three roles available: customer, supplier and
Admin.
Visitor can view available products.
User can view and purchase products.
An Admin has some extra privilege including all
privilege of visitor and user.
The software I have choosen to draw the ER diagram is ERDplus .This software
is mainly a web-based data modeling ER diagram tool which easily represents
relational database drawings and makes complex database structures to be
easily understandable.
Features
WEAK ENTITY:
A weak entity is the one which is dependent on another entity. It is portrayed by a double
rectangle.
ATTRIBUTE:
Attribute - A property or description of an entity. A toy department
employee entity could have attributes describing the students name,
class, and year.
KEY ATTRIBUTE:
MULTI-VALUED ATTRIBUTE:
A multivalued attribute consists of more than one value. Multivalued attributes are
represented by a double oval. For instance, any customer can have one or more
than phone numbers.
DERIVED ATTRIBUTE:
Any attribute which can be acquired by any other attribute is considered as a
derived attribute. It is portrayed by a dashed ellipse. For instance, the age of the
person can be changed with time and can even be derived from any other
attribute such as Date of Birth.
Types of relationships:
One-to-one: When only a single instance of an entity is associated with the
relationship, it is termed as '1:1'.
REFERENCES:
1. Anne Boehm, Joel Murach, Murach’s ASP.NET 4 Web Programming with
C# 2010, 4th Edition, Murach, 2010.
2. Bryan Syverson, Joel Murach, Murach’s SQL Server 2012 for developers,
Murach, 2012.
https://www.guru99.com/er-diagram-tutorial-dbms.html
http://www.tekkom.dk/w/images/5/5f/ER-Diagrams.pdf
https://www.w3schools.in/dbms/er-model/