Professional Documents
Culture Documents
Chandigarh University Software Engineering (Cst-220)
Chandigarh University Software Engineering (Cst-220)
Aim:-Draw ER Diagram.
Ans:-
An entity relationship diagram (ERD) shows the relationships of entity sets stored in a database. An entity in
this context is an object, a component of data. An entity set is a collection of similar entities. These entities
can have attributes that define its properties.
Common Entity Relationship Diagram Symbols
An ER diagram is a means of visualizing how the information a system produces is related. There are five
main components of an ERD:
Entities, which are represented by rectangles. An entity is an object or concept about which you want
to store information.
A weak entity is an entity that must defined by a foreign key relationship with another entity as it
database.
In some cases, entities can be self-linked. For example, employees can supervise other employees.
Attributes, which are represented by ovals. A key attribute is the unique, distinguishing characteristic
of the entity. For example, an employee's social security number might be the employee's key
attribute.
CHANDIGARH UNIVERSITY SOFTWARE ENGINEERING (CST-220)
A multivalued attribute can have more than one value. For example, an employee entity can have