DBMS 18CSCC303J - Unit - 2 - Part - I - Raw
DBMS 18CSCC303J - Unit - 2 - Part - I - Raw
SYSTEMS
COURSE CODE : 18CSC303J
UNIT II
PART-I
INSTRUCTOR:
DR. NIRANJAN LAL @ SRM IST, DELHI NCR CAMPUS
[email protected] (personal)
[email protected] (professional)
http://cooltechie.in/
Unit-II : Syllabus/ Roadmap
Session Learning Outcomes(SLO)
Database Design
Design process
Entity Relation Model
ER diagram
Keys , Attributes and Constraints
Mapping Cardinality Extended ER –
Generalization
Specialization and Aggregation
ER Diagram Issues
Weak Entity
Relational Model
Conversion of ER to Relational Table
Course Outcomes (Unit 2)
Apply the fundamentals of data models to model an
application’s data requirements using conceptual
modelling tools like ER diagrams.
ER Diagrams Notation
Relationships of Higher Degree
Example COMPANY Database
Requirements for the COMPANY Database:
The company is organized into DEPARTMENTs. Each department has a
name, number and an employee who manages the department. We keep
track of the start date of the department manager. A department may
have several locations.
Each department controls a number of PROJECTs. Each project has a
name, number, and is located at a single location
We store each EMPLOYEE’s social security number, address, salary, sex,
and birth date. Each employee works for one department but may work on
several projects.We keep track of the number of hours per week that an
employee currently works on each project. We also keep track of the direct
supervisor of each employee.
Each employee may have a number of DEPENDENTs. For each dependent,
we keep their name, sex, birth date, and relationship to the employee.
ER model
ER model stands for an Entity-Relationship model. It is a high-
level data 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.
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 diagram
Entity Relationship Diagram
– ER Diagram in DBMS. An
Entity–relationship model
(ER model) describes the
structure of a database with
the help of a diagram, which
is known as Entity
Relationship Diagram (ER
Diagram).
An ER model is a design or
blueprint of a database that
can later be implemented as a
database.
Terminologies Related to ER
Model
The ER data model employs three basic concepts:
entity sets,
relationship sets,
attributes.