ER Model - 👑 सार्थक मुंड S3 🤴🏻

ER Model

ER Model

What are ER Model ? Describe the advantages and dis-advantages of ER Model and what are the basic constructor of an ER Model, describe with diagram ?

◾ER model stands for Entity Relationship model. It is a high level data model. This model is used to define the data elements and relationship for the satisfied system.
◾It develops a conceptual design for the database. It also develops a very simple and easy to design view of data.
◾In ER model, the database structure is portrayed (तसवीर बनाना) as a diagram called a entity relationship diagram.
For Example : Suppose we design a school database, In this database, the student will be an entity with attributes like address, name, id, age etc.
◾The address can be another entity with attributes like city, street name, pin code etc and there will be a relationship between them.
ER Model

Advantages of ER Model :-

◾Conceptually it is very simple.
◾Better visual representation.
◾Effective communication tool.
◾Highly integrated with Relational Model.
◾Easy conversion to any data Model

Dis-advantages of ER Model :-

◾Limited constraints and specifications.
◾Loss of information content.
◾Limited relationship representation.
◾No representation of data manipulation.
◾Popular for high level design.
◾No industry standard for notation

Components of ER Model :-

ER Model

A. Entity :-

◾An entity may be any object, class, person or place. In the ER diagram, an entity can be represented as rectangles.
Example : Consider an organization as an example; Manager, Product, Employee, Department etc, can be taken as an entity.
ER Model

1. Weak Entity :-

◾An entity that depends on another entity called a weak entity.
◾The weak entity doesn't contain any key attribute of its own.
◾The weak entity is represented by a double rectangle.
ER Model

B. Attribute :-

◾The attribute is used to describe the property of an entity. Ellipse is used to represent an attribute.
For Example : i'd, age, address, number, name etc can be attribute of a student.
ER Model

1. Key attribute :-

◾The key attributes is used to represent the main characteristics of an entity.
◾It represent a primary key.
◾The key attribute is represented by an eclipse with the text underlined.
ER Model

2. Composite attribute :-

◾An attribute that composed of many other attributes is known as a composite attribute.
◾The composite attribute is represented by an ellipse and those ellipse are connected with an ellipse.
ER Model

3. Multi valued Attributes :-

◾An attribute can have more than one value.
◾These attributes are known as a multi valued attributes.
◾The double oval is used to represent multi valued attribute.
ER Model
Example : A student can have more than one phone numbers.

4. Derived Attribute :-

◾An attribute that can be derived from other attribute is known as a derived attribute.
◾It can be represented by a derived ellipse.
For example : A persons age changes over time and can be derived from another attribute like Date of birth.
ER Model

C. Relationship :-

◾A relationship is used to describe the relation between entities.
Diamond is used to represent the relationship.
ER Model
Read : What is relationship & Types of relationship
Must Read :-
  1. Blogger Tutorial
  2. C Programs
  3. C++ Programs
  4. Java Programs
  5. Python Programs
  6. Programming Notes 
  7. Questions & Answers
  8. My Codes : HTML, CSS & JS
  9. All Subject Notes
Previous article
Next article

4 Comments to

  1. Thank you Sarthak 😊😊😊😊

    ReplyDelete
  2. This information really worth saying, i think you are master of the content 😇 and thank you so much sharing that valuable information 😇 😇

    ReplyDelete

Articles Ads

Articles Ads 1

Articles Ads 2

Advertisement Ads