Some Topic Advance Databaase Management System
Some Topic Advance Databaase Management System
ER MODEL
EER MODEL
• SUB CLASSES
• SUPER CLASSES
SPECIALISATION
GENERALIZATION
SUBMITTED BY:
NAME : SHRUTI KUMARI
ROLL NO. : 10550
DEPARTMENT : MCA(5TH SEM)
SESSION : 2017-2020
Entity relationship model also called e-r model and it is a high level model.
This model is used to define the data elements and relationship for a specified
system.
It develops a conceptual design for the database. It also develops a very simple and
easy to design view of data.
In ER modeling, the database structure is portrayed as a diagram called an entity-
relationship diagram.
EXAMPLE :-
Component of ER Diagram
Entity:-
An entity may be any object, class, person or place.
In the ER diagram, an entity can be represented as rectangles.
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.
Attribute :-
The attribute is used to describe the property of an entity.
For example - id, age, contact number, name, etc. can be
attributes of a student.
Composite Attribute :-
An attribute that composed of many other attributes is known as a composite
attribute.
Multivalued Attribute :-
An attribute can have more than one value.
These attributes are known as a multivalued attribute.
The double oval is used to represent multivalued attribute.
Derived Attribute :-
An attribute that can be derived from other attribute is known
as a derived attribute.
It can be represented by a dashed oval.
ENHANCED E-R MODEL
Specialized Entity relation diagram which is used for modeling the conceptual database.
It is used for various concept related to Object Oriented Programming.
It represent requirements and the complexity of the complex database. Specialized Entity relation
diagram which is used for modeling the conceptual database.
It is used for various concept related to Object Oriented Programming.
It represent requirements and the complexity of the complex database.
EERD includes:-
A) Sub class
B) Super class
Sub Class
• Entity part of super class which relates one or more subtypes or subclass
Sub class inherits properties and attributes from its super class.
For example: Square, Circle, Triangle are the sub class of Shape super class.
Super Class
Super class is an entity type that has a relationship with one or more subtypes.
An entity cannot exist in database merely by being member of any super class.
For example: Shape super class is having sub groups as Square, Circle, Triangle.
Generalization
Generalization is the process of generalizing the entities which contain the properties of all
the generalized entities.
It is a bottom approach, in which two lower level entities combine to form a higher level
entity.
Generalization is the reverse process of Specialization.
It defines a general entity type from a set of specialized entity type.
It minimizes the difference between the entities by identifying the common features.
Example:-
Specialization
Specialization is a process that defines a group entities which is divided into sub groups
based on their characteristic.
It is a top down approach, in which one higher entity can be broken down into two lower
level entity.
It maximizes the difference between the members of an entity by identifying the unique
characteristic or attributes of each member.
It defines one or more sub class for the super class and also forms the superclass/subclass
relationship.
Example :-