DBMS Modeul-2-ERD
DBMS Modeul-2-ERD
DBMS Modeul-2-ERD
Assistant Professor
Computer Engineering Department
Vidyalankar Institute of Technology
Introduction
• Data Model
Data Model gives an idea that how the final system will look like after its complete implementation.
It defines the data elements and the relationships between the data elements. Data Models are
used to show how data is stored, connected, accessed and updated in the database management
system.
• Some of the Data Models in DBMS are:
➢ Hierarchical Model
➢ Network Model
➢ Entity-Relationship Model
➢ Relational Model
➢ Object-Oriented Data Model
➢ Object-Relational Data Model
➢ Flat Data Model
➢ Semi-Structured Data Model
➢ Associative Data Model
➢ Context Data Model
ER Data Model
• The ER data model employs three basic concepts:
• entity sets,
• relationship sets,
• attributes
• Entity : It can be a real-world object with an existence, For example, in
a College database, the entities can be Professor, Students, Courses,
etc.
• Relationship : It is an association among several entities
• Attribute : Entities has attributes, which can be considered as
properties describing it, for example, for Professor entity, the
attributes are Professor_Name, Professor_Address,
Professor_Salary, etc. The attribute value gets stored in the database.
An attribute can also be associated with a relationship set.
Types of DBMS Entities
1.Strong Entity:The strong entity has a primary key. Weak entities are dependent
on strong entity. Its existence is not dependent on any other entity.
Professor Professor_ID
Surrogate Key An artificial key which aims to uniquely identify each Sr. No.
record is called a surrogate key. These kind of key are
unique because they are created when you don't have
any natural primary key.
• Types of Relationship