SlideShare a Scribd company logo
1 of 11
Introduction to database management system
Database : data is stored in digital form.
CONCEPTUAL DESIGN USING ER( ENTITY RELATIONSHIP) MODEL
Fundamentals component of today database is tables.
Why do we need ER modeling ?
Database is embedded in information application
UOD
DATABASE REQUIREMENTS FUNCTIONAL REQUIREMENT
REQUIRMENTS/COLLECTON AND ANALYSIS

UOD : (universe of discourse) The portion of the real world relevant to the
database is sometimes referred to as the universe of discourse or as the database
mini world.

Requirements and collection and then analysis: in this we basically do requirement
analysis and finding the types of entity and their rules and relations with other
entity. That gives two types of requirements.

1. database requirement : we can say its data requirement. It is handled by the
DBMS. DBMS is called as engine. We need layering around this engine and this
layering is called as information application like a car which surrounds the engine.

2. functional requirement: this helps in the design of the application.

Theses are the DBMS independent process means that it does not depend whether
we are using the oracle database or IBM database type or MYSQL database or
whatever database we are using we have to understand UOD and come out with the
conceptual schema.

Database requirement → conceptual design → conceptual schema

Functional requirement → functional analysis → high level transaction
specification

The above design is the DBMS dependent process because the physical
organization of data in ORACLE and IBM may be different. That means they have
different access mechanism. This physical organization of data is called internal
schema.

Even the transaction will also be affected by the physical organization of the data.

Thus we programmer must know the physical organization of the data.
Physical
design
Conceptual
schema
Internal
schema
High level
Transaction
specification
Application
program
design
Transaction
implementation
software
Conceptual schema

It is the outcome of the high level conceptual design of the database. For this we
have to understand the UOD that is what can kind of data should be taken in the
UOD. Example of banking, in this there are accounts, customer or account holders
and there can some form of the monetary transaction. All these represent some
form of the data. Thus we will identify the relationship among the customer or
accounts entity etc. thus it includes the description of entity types. There can
certain constraint which can be imposed by the system( bank balance cannot be <
500) or the UOD ( like two trains have the arrival time same at the same plateform
number).

There is no implementation detail mentioned. We are not worried about how this
conceptual schema will implement.

The main behind conceptual design is ease of understanding. Thus the end user
( non technical users) must understand the conceptual schema.

Example of COMPANY database

Department : name , Did, ….

Department is the entity and name , Did are the attributes of the entity department.
Standard notation of representing entity and attributes

An entity represents an object of the real world that has the independent existence.
The independent existence means that the entity is independent of every other
entity in the system.

An entity has attributes – properties that describe it.

Kinds of attributes :

a. Simple attributes : it is the single attribute which defines its own characterstics.
Example like age attribute. No further decomposition can be possible.

b. Composite attributes : it is made up of two or more simple attributes of
composite attributes. Example name consist of first name and middle name and last
name.
Department
depart_name dept_id Manager

Single value attribute : A single valued attribute is one that holds a single value for
a single entity. Example: roll_number, name etc.

Multivalued attribute : Multivalued attribute is one that holds multiple values for a
single entity. Example: degree behold by a person (MS, PhD).

How multivalued attribute different from the composite attribute ?

Ans : a composite attribute is made of sub attributes like name is made up of first ,
middle and last name and all of them need not be the same type that is all of them
do not have the same value at the same time whereas the multivalued attribute say
color of the peacock have different values of color at the same.

Stored attribute : the attribute which just stored in the database. Example ,
datofbirth, we just give the date of birth to the system and stored in the system.

Derived attribute: the attribute whose value can be inferred from the value of the
other attribute. Example age is the derived attribute , given the date of birth minus
today dates gives the age of the attribute.

Null attributes : attributes that do not have applicable values are said to have null
values. A null value is different from 0 , missing value or unknown.
Entity types and Entity sets

An entity type defines a collection of different entities having the same type.
Example “department” of the company. A company consist of different
departments. But all of them have the same number of attributes or same attribute
structure. Thus entity type is a collection of all the different departments of the
company.

Any specific collection of entities of a particular type is called an entity set. For
example the entity set employee (all employees of a bank) and the entity set
customer (all customers of the bank).

An entity type describes the schema of the entity set.

Key attribute: the attribute which uniquely identifies the entity in the entity set.

Composite key : a collection of the attributes define the key, the set is called as
composite key.

A composite key should be minimal. No subset of the composite key should be
minimal.

Weak entity type: the entity type foe which we cannot define the key attributes.
For this type of entity, all the tuples have to totally participate in the relationship.
Domain of attributes

Domain of attributes basically defines the space in which the values of the specific
attribute lies. Example age can be lie between 1 to 70 or 80 but can never be
negative.

If the composite attribute have the value d1 , d2, …. then its domain id d1xd2x....
that is cartsisan product of the domains of individual attributes.

Relationship types relate two or more entity types and defines the relationship set.
Any given depiction of a relationship type is called as relation ship instance.

A relationship type of R defines the set of an association among the entity types.

Degree of relationship type : the number of the participating entity types in the
relationship type. There can be unary , ternary and binary relationship type.

Constraint on the relationship type: constraint which limit the possible
combination of entities that can participate in the relationship type.

Two types of the constraint on the relationship type:
cardinality ratio: N:1 , this means that the department can have any number of the
employees but the employee can only work for one department.
Participation constraint: M:N if every project has to be associated with a
department, then the “existence” of an instance of project entity type depends on the
existence of an instance of the handle relationship types. Total participation is
represented by double line.
Employee DepartmentWorks for
Departme
nt
Projecthandles
Attribute of the relationship type

Budget neither belongs to the department nor project. It just specifies the
budget of each of the project with respect to specific department.
Relationship attribute can be moved to one of the entity types.
Departme
nt
Projecthandles
Budget
Departme
nt
Projecthandles
Budget
Identifying relationships

Insurance record is a “weak entity set” which has no existence without its
association with the employee entity. The relationship insurance details is an
identifying relationship instance. The key of the employee will defines the
insurance record entity type. Not all the total participation relationship type
represents and identifying relationships. Example project and department
Employee Insurance
record
Insurance
details
PAN

More Related Content

What's hot

How to Draw an Effective ER diagram
How to Draw an Effective ER diagramHow to Draw an Effective ER diagram
How to Draw an Effective ER diagramTech_MX
 
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...Mustafa Kamel Mohammadi
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship DiagramSiti Ismail
 
Chapter-3 Data Modeling Using the Entity-Relationship Model
Chapter-3  Data Modeling Using the Entity-Relationship ModelChapter-3  Data Modeling Using the Entity-Relationship Model
Chapter-3 Data Modeling Using the Entity-Relationship ModelRaj vardhan
 
Er Model Nandha&Mani
Er Model Nandha&ManiEr Model Nandha&Mani
Er Model Nandha&Maniguest1e0229a
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship ModelSlideshare
 
The entity relationship model
The entity relationship modelThe entity relationship model
The entity relationship modelyash patel
 
Data Modeling Using the EntityRelationship (ER) Model
Data Modeling Using the EntityRelationship (ER) ModelData Modeling Using the EntityRelationship (ER) Model
Data Modeling Using the EntityRelationship (ER) Modelsontumax
 
Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)Mudasir Qazi
 
27 f157al5enhanced er diagram
27 f157al5enhanced er diagram27 f157al5enhanced er diagram
27 f157al5enhanced er diagramdddgh
 

What's hot (20)

How to Draw an Effective ER diagram
How to Draw an Effective ER diagramHow to Draw an Effective ER diagram
How to Draw an Effective ER diagram
 
Database design
Database designDatabase design
Database design
 
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
dbms
dbmsdbms
dbms
 
enhanced er diagram
enhanced er diagramenhanced er diagram
enhanced er diagram
 
Chapter3
Chapter3Chapter3
Chapter3
 
Chapter-3 Data Modeling Using the Entity-Relationship Model
Chapter-3  Data Modeling Using the Entity-Relationship ModelChapter-3  Data Modeling Using the Entity-Relationship Model
Chapter-3 Data Modeling Using the Entity-Relationship Model
 
Er Model Nandha&Mani
Er Model Nandha&ManiEr Model Nandha&Mani
Er Model Nandha&Mani
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
 
ER Model in DBMS
ER Model in DBMSER Model in DBMS
ER Model in DBMS
 
Entity relationship diagram
Entity relationship diagramEntity relationship diagram
Entity relationship diagram
 
The entity relationship model
The entity relationship modelThe entity relationship model
The entity relationship model
 
Erd chapter 3
Erd chapter 3Erd chapter 3
Erd chapter 3
 
DBMS Class 3
DBMS Class 3DBMS Class 3
DBMS Class 3
 
Data Modeling Using the EntityRelationship (ER) Model
Data Modeling Using the EntityRelationship (ER) ModelData Modeling Using the EntityRelationship (ER) Model
Data Modeling Using the EntityRelationship (ER) Model
 
Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)
 
Datastage database design and data modeling ppt 4
Datastage database design and data modeling ppt 4Datastage database design and data modeling ppt 4
Datastage database design and data modeling ppt 4
 
27 f157al5enhanced er diagram
27 f157al5enhanced er diagram27 f157al5enhanced er diagram
27 f157al5enhanced er diagram
 
Data & Databases
Data & Databases Data & Databases
Data & Databases
 

Similar to Database Fundamentals: ER Modeling and Conceptual Design

Data modeling using the entity relationship model
Data modeling using the entity relationship modelData modeling using the entity relationship model
Data modeling using the entity relationship modelJafar Nesargi
 
3. Chapter Three.pdf
3. Chapter Three.pdf3. Chapter Three.pdf
3. Chapter Three.pdffikadumola
 
Jobs manager vs supervisor.pptx
Jobs manager vs supervisor.pptxJobs manager vs supervisor.pptx
Jobs manager vs supervisor.pptxprosofts1
 
ECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptxECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptxmiftah88
 
Basic concepts of Data and Databases
Basic concepts of Data and Databases Basic concepts of Data and Databases
Basic concepts of Data and Databases Tharindu Weerasinghe
 
ICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdfICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdfInfotech27
 
Chapter 2. Concepctual design -.pptx
Chapter 2. Concepctual design -.pptxChapter 2. Concepctual design -.pptx
Chapter 2. Concepctual design -.pptxsantosh96234
 
ERD with complete knowledge
ERD with complete knowledgeERD with complete knowledge
ERD with complete knowledgeAsma Rasool
 
Cn presentation on the topic called as re modelling
Cn presentation on the topic called as re modellingCn presentation on the topic called as re modelling
Cn presentation on the topic called as re modellingg30162363
 
DBMS_unit2_Notes.pdf
DBMS_unit2_Notes.pdfDBMS_unit2_Notes.pdf
DBMS_unit2_Notes.pdfssuserf71896
 
software_engg-chap-03.ppt
software_engg-chap-03.pptsoftware_engg-chap-03.ppt
software_engg-chap-03.ppt064ChetanWani
 

Similar to Database Fundamentals: ER Modeling and Conceptual Design (20)

Chapter3
Chapter3Chapter3
Chapter3
 
Data modeling using the entity relationship model
Data modeling using the entity relationship modelData modeling using the entity relationship model
Data modeling using the entity relationship model
 
Unit02 dbms
Unit02 dbmsUnit02 dbms
Unit02 dbms
 
3. Chapter Three.pdf
3. Chapter Three.pdf3. Chapter Three.pdf
3. Chapter Three.pdf
 
Jobs manager vs supervisor.pptx
Jobs manager vs supervisor.pptxJobs manager vs supervisor.pptx
Jobs manager vs supervisor.pptx
 
ECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptxECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptx
 
ER modeling
ER modelingER modeling
ER modeling
 
02er
02er02er
02er
 
Basic concepts of Data and Databases
Basic concepts of Data and Databases Basic concepts of Data and Databases
Basic concepts of Data and Databases
 
ICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdfICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdf
 
Er diagrams
Er diagramsEr diagrams
Er diagrams
 
Chapter 2. Concepctual design -.pptx
Chapter 2. Concepctual design -.pptxChapter 2. Concepctual design -.pptx
Chapter 2. Concepctual design -.pptx
 
ERD with complete knowledge
ERD with complete knowledgeERD with complete knowledge
ERD with complete knowledge
 
Cn presentation on the topic called as re modelling
Cn presentation on the topic called as re modellingCn presentation on the topic called as re modelling
Cn presentation on the topic called as re modelling
 
ER MODEL
ER MODELER MODEL
ER MODEL
 
DBMS_unit2_Notes.pdf
DBMS_unit2_Notes.pdfDBMS_unit2_Notes.pdf
DBMS_unit2_Notes.pdf
 
27 fcs157al3
27 fcs157al327 fcs157al3
27 fcs157al3
 
E r model
E r modelE r model
E r model
 
software_engg-chap-03.ppt
software_engg-chap-03.pptsoftware_engg-chap-03.ppt
software_engg-chap-03.ppt
 
E R Model details.ppt
E R Model details.pptE R Model details.ppt
E R Model details.ppt
 

Recently uploaded

AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 

Recently uploaded (20)

YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 

Database Fundamentals: ER Modeling and Conceptual Design

  • 1. Introduction to database management system Database : data is stored in digital form. CONCEPTUAL DESIGN USING ER( ENTITY RELATIONSHIP) MODEL Fundamentals component of today database is tables. Why do we need ER modeling ? Database is embedded in information application UOD DATABASE REQUIREMENTS FUNCTIONAL REQUIREMENT REQUIRMENTS/COLLECTON AND ANALYSIS
  • 2.  UOD : (universe of discourse) The portion of the real world relevant to the database is sometimes referred to as the universe of discourse or as the database mini world.  Requirements and collection and then analysis: in this we basically do requirement analysis and finding the types of entity and their rules and relations with other entity. That gives two types of requirements.  1. database requirement : we can say its data requirement. It is handled by the DBMS. DBMS is called as engine. We need layering around this engine and this layering is called as information application like a car which surrounds the engine.  2. functional requirement: this helps in the design of the application.  Theses are the DBMS independent process means that it does not depend whether we are using the oracle database or IBM database type or MYSQL database or whatever database we are using we have to understand UOD and come out with the conceptual schema.  Database requirement → conceptual design → conceptual schema  Functional requirement → functional analysis → high level transaction specification
  • 3.  The above design is the DBMS dependent process because the physical organization of data in ORACLE and IBM may be different. That means they have different access mechanism. This physical organization of data is called internal schema.  Even the transaction will also be affected by the physical organization of the data.  Thus we programmer must know the physical organization of the data. Physical design Conceptual schema Internal schema High level Transaction specification Application program design Transaction implementation software
  • 4. Conceptual schema  It is the outcome of the high level conceptual design of the database. For this we have to understand the UOD that is what can kind of data should be taken in the UOD. Example of banking, in this there are accounts, customer or account holders and there can some form of the monetary transaction. All these represent some form of the data. Thus we will identify the relationship among the customer or accounts entity etc. thus it includes the description of entity types. There can certain constraint which can be imposed by the system( bank balance cannot be < 500) or the UOD ( like two trains have the arrival time same at the same plateform number).  There is no implementation detail mentioned. We are not worried about how this conceptual schema will implement.  The main behind conceptual design is ease of understanding. Thus the end user ( non technical users) must understand the conceptual schema.  Example of COMPANY database  Department : name , Did, ….  Department is the entity and name , Did are the attributes of the entity department.
  • 5. Standard notation of representing entity and attributes  An entity represents an object of the real world that has the independent existence. The independent existence means that the entity is independent of every other entity in the system.  An entity has attributes – properties that describe it.  Kinds of attributes :  a. Simple attributes : it is the single attribute which defines its own characterstics. Example like age attribute. No further decomposition can be possible.  b. Composite attributes : it is made up of two or more simple attributes of composite attributes. Example name consist of first name and middle name and last name. Department depart_name dept_id Manager
  • 6.  Single value attribute : A single valued attribute is one that holds a single value for a single entity. Example: roll_number, name etc.  Multivalued attribute : Multivalued attribute is one that holds multiple values for a single entity. Example: degree behold by a person (MS, PhD).  How multivalued attribute different from the composite attribute ?  Ans : a composite attribute is made of sub attributes like name is made up of first , middle and last name and all of them need not be the same type that is all of them do not have the same value at the same time whereas the multivalued attribute say color of the peacock have different values of color at the same.  Stored attribute : the attribute which just stored in the database. Example , datofbirth, we just give the date of birth to the system and stored in the system.  Derived attribute: the attribute whose value can be inferred from the value of the other attribute. Example age is the derived attribute , given the date of birth minus today dates gives the age of the attribute.  Null attributes : attributes that do not have applicable values are said to have null values. A null value is different from 0 , missing value or unknown.
  • 7. Entity types and Entity sets  An entity type defines a collection of different entities having the same type. Example “department” of the company. A company consist of different departments. But all of them have the same number of attributes or same attribute structure. Thus entity type is a collection of all the different departments of the company.  Any specific collection of entities of a particular type is called an entity set. For example the entity set employee (all employees of a bank) and the entity set customer (all customers of the bank).  An entity type describes the schema of the entity set.  Key attribute: the attribute which uniquely identifies the entity in the entity set.  Composite key : a collection of the attributes define the key, the set is called as composite key.  A composite key should be minimal. No subset of the composite key should be minimal.  Weak entity type: the entity type foe which we cannot define the key attributes. For this type of entity, all the tuples have to totally participate in the relationship.
  • 8. Domain of attributes  Domain of attributes basically defines the space in which the values of the specific attribute lies. Example age can be lie between 1 to 70 or 80 but can never be negative.  If the composite attribute have the value d1 , d2, …. then its domain id d1xd2x.... that is cartsisan product of the domains of individual attributes.  Relationship types relate two or more entity types and defines the relationship set. Any given depiction of a relationship type is called as relation ship instance.  A relationship type of R defines the set of an association among the entity types.  Degree of relationship type : the number of the participating entity types in the relationship type. There can be unary , ternary and binary relationship type.
  • 9.  Constraint on the relationship type: constraint which limit the possible combination of entities that can participate in the relationship type.  Two types of the constraint on the relationship type: cardinality ratio: N:1 , this means that the department can have any number of the employees but the employee can only work for one department. Participation constraint: M:N if every project has to be associated with a department, then the “existence” of an instance of project entity type depends on the existence of an instance of the handle relationship types. Total participation is represented by double line. Employee DepartmentWorks for Departme nt Projecthandles
  • 10. Attribute of the relationship type  Budget neither belongs to the department nor project. It just specifies the budget of each of the project with respect to specific department. Relationship attribute can be moved to one of the entity types. Departme nt Projecthandles Budget Departme nt Projecthandles Budget
  • 11. Identifying relationships  Insurance record is a “weak entity set” which has no existence without its association with the employee entity. The relationship insurance details is an identifying relationship instance. The key of the employee will defines the insurance record entity type. Not all the total participation relationship type represents and identifying relationships. Example project and department Employee Insurance record Insurance details PAN