23ad46 Erd
23ad46 Erd
23ad46 Erd
ASSIGNMENT 2
Submitted by
VIGNESHWAR R
23AD46
INTRODUCTION:
An Entity-Relationship Diagram (ERD) is a visual representation of a data model that depicts the
relationships between various entities in a database. It's like a map of your data, helping you
understand the connections and organize information effectively. It is a widely used technique in
database design and software engineering to demonstrate a database's logical structure. The ERD
aids in understanding how different entities interact and how data is stored and retrieved in a
database system.
COMPONENTS OF ERD:
Entities: These are the main data objects you want to store information about, like
customers, products, orders, or employees. They're represented as boxes or rectangles in
the diagram.
Attributes: These are the specific details or features of each entity, such as the name of a
customer, their address, the price of a product, or the ID of an employee. These details are
displayed inside the box representing the entity on the diagram.
Relationships: Entities are like different pieces of information in a database, such as
customers, products, employees, or projects. Relationships show how these pieces are
connected. For instance, a customer can place an order for a product, or an employee can
work on a project. In diagrams, relationships are drawn as lines between these pieces, with
labels explaining how they are linked.
Cardinality: This tells you how many entities can be involved in a relationship on each
side.
TYPES OF CARDINALITY:
Only one instance of one entity and one instance of another can be related.
One-to-Many (1:N):
Many-to-Many(N:M):
This is the bustling intersection, where many instances of one entity can be
related to many instances of another entity. Orders can contain multiple products, and products can
be included in multiple orders.
Here the ERD is created for the different Cardinalites based on the Warehouse Management
System.
Entities
Google Bard AI
https://www.techtarget.com/searchdatamanagement/definition/entity-relationship-
diagram-
ERD#:~:text=An%20entity%20relationship%20diagram%20(ERD,information%20technol
ogy%20(IT)%20system.