The Wayback Machine - https://web.archive.org/web/20230708084400/https://www.geeksforgeeks.org/difference-between-e-r-model-and-relational-model-in-dbms/
Skip to content
Related Articles
Open In App

Related Articles

Difference between E-R Model and Relational Model in DBMS

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

E-R model and Relational model are two types of data models present in DBMS. Let’s have a brief look of them: 

1. E-R Model : E-R model stands for Entity-Relationship model. ER Model is used to model the logical view of the system from data perspective which consists of these components: Entity, Entity Type, Entity Set. An Entity may be an object with a physical existence – a particular person, car, house, or employee – or it may be an object with a conceptual existence – a company, a job, or a university course. An Entity is an object of Entity Type and set of all entities is called an entity set. e.g.; E1 is an entity having Entity Type Student and set of all students is called Entity Set. An Entity Type defines a collection of similar entities and set of all entities is called an entity set. 

2. Relational model : Relational Model was proposed by E.F. Codd to model data in the form of relations or tables. After designing the conceptual model of Database using ER diagram, we need to convert the conceptual model in the relational model which can be implemented using any RDBMS languages like Oracle SQL, MySQL etc. Consider a relation STUDENT with attributes ROLL_NO, NAME, ADDRESS, PHONE and AGE shown in Table 1.STUDENT

ROLL_NONAMEADDRESSPHONEAGE
1RAMDELHI945512345118
2RAMESHGURGAON965243154318
3SUJITROHTAK915625313120
4SURESHDELHI 18

Let’s see the difference between ER model and relational model:

ER modelRelational model
Developed by Peter Chen in 1976.Developed by E.F. Codd in 1970.
ER model is the high level or conceptual model.It is the representational or implementation model.
It is used by people who don’t know how database is implemented.It is used by programmers.
It represents collection of entities and describes relationship between them.It represent data in the form of tables and describes relationship between them.
It consists of components like Entity, Entity Type, Entity Set.It consists of components like domain, attributes, tuples.
It is easy to understand the relationship between entities.It is less easy to derive the relationship between different tables.
It describes cardinality.It does not describe cardinality.
E-R model does not define data dependencies.Relational model defines dependencies in tables.
E-R model represents relationships as associations.Relational model represents relationships as join tables.
E-R model is more granular in terms of data representation.Relational model is less granular.
E-R model is more flexible than the relational model.Relational model is less flexible than E-R model.
E-R model does not involve normalization.Relational model involves normalization.
E-R model use case is useful for initial planning and design.Relational model use case  is useful for implementation and maintenance

Some of the popular Language and Notations used-

  • Chen
  • UML
  • Crow’s foot
  • Bachman and others.

Some of the popular Language and Notations used-

  • SQL
  • MySQL
Last Updated : 06 Apr, 2023
Like Article
Save Article
Similar Reads
Related Tutorials