Professional Documents
Culture Documents
Attribute or Relationship
Attribute or Entity
Time Dependent Data
Many to Many Relationships
Ternary Relationships
Business Rules
ER Model (Entity Types)
ER Model (Attributes)
ER Model (Relationships)
Categories of Cardinality
1:1
1:M
M:N
Enhanced ERD
(EERD)
Enhanced E-R Model
The original E-R Model was developed
in mid-1970
Business environment has changed
dramatically
Some enhancement is made to E-R
Model to cope with the modern
business trends
Enhanced E-R Model
The model that has been resulted from
extending the original E-R Model
with new modeling constructs is
known as Enhanced entity
relationship(EER) model
Supertypes & Subtypes
Entity Type is collection of entities that
share common properties
Major challenge in Data Modeling is to
present entities that are same but
differ on one or two attributes that
are of the interest of organization
E-R Model have to include Super/Sub
Relationship
Super/sub Relationship
Subtype
A sub-grouping of the entities in a
entity type that are meaningful to the
organization
That share common attributes on a
relationship distinct from other sub-
grouping
Super/sub Relationship
Supertype
A generic entity type that has a
relationship with one or more subtypes
STUDENT entity type has two
subgrouping POSTGRADUATE
STUDENT and UNDERGRADUATE
STUDENT
Super/sub Relationship
Shared Attributes
SUPERTYPE
SUBTYPE1 SUBTYPE2
Completeness Constraint
Disjoint-ness Constraint
Subtype Discriminator
Constraints in Super-type/Subtype
Completeness Constraint: A type of
constraint that addresses whether an
instance of a supertype must also be a
member of at least one subtype
It has two possible rules:
Total Specialization Rule
Partial Specialization Rule
Completeness Constraint
(Total Specialization Rule)
Database Implementation
Database Maintenance
Logical Database Design
Logical database design is the process
of transforming the conceptual
data model into logical data model
Relational Data Model will be used in
this regard
DBA has to decide DBMS at this stage
Relational Data Model
Following are the reasons to choose the
Relational Data Model
1. Based on concrete mathematical
theory
2. Most commonly used Data Model
3. Lot of CASE tools exists
4. Some of principals also apply to the
other Data Models
Relational Model
Relational Model consists of three
components:
1. Data Structure
Data is organized in the form of
Relations(tables) with rows and
columns
2. Data Manipulation
3. Data Integrity
Relation
A named two dimensional table
Columns are labeled
Rows are un-labeled
EMPLOYEE
Emp_ID Name Dept_Name Salary
100 Margaret Marketing 48,000
140 Allen Accounting 52,000
110 Chris Info Systems 20,000
190 Lorenzo Finance 55,000
150 Susan Marketing 35,000
Relation
We can express the relation using the short-
hand notation as:
EMPLOYEE(Emp_ID, Name, Dept_Name,Salary)
CUSTOMER
EMPLOYEE
EMPLOYEE
Employee_ID
Employee_Name
Address(Stree_Address, City, State)
EMPLOYEE
EMPLOYEE_SKILL
Employee_ID Skill
EMPLOYEE
Emp_ID Name Dept_Name Skill
150 C#
Step 2: Map Weak Entities
Weak entity is an entity type whose
existence depends on some other
entity type(Strong)
1. Define a new table for each weak
entity
2. The primary key of strong entity
relation serve to make foreign key in
the weak entity relation
Step 2: Map Weak Entities
Surrogate primary key
A serial number or other system
assigned primary key for a relation
Step 3: Map Binary Relationship
A relationship between two entities
known as binary relationship
The cardinality of Binary Relationship
can be of following types:
1:M
M:N
1:1