SlideShare a Scribd company logo
Database Modeling
Using Entity
Weak And Strong Entity
Types
Data Modeling
Data modeling :
A technique for organizing and documenting a system’s
DATA. Data modeling is sometimes called database
modeling because a data model is usually implemented
as a database. It is sometimes called information
modeling.
Entity relationship diagram (ERD) :
A data model utilizing several notations to depict data in
terms of the entities and relationships described by that
2
 Process of creating a data model for an information
system by applying formal data modeling techniques.
 Process used to define and analyze data requirements
needed to support the business processes.
3
Data Modeling
“ One way to structure
unstructured problems is
to Draw Models ”
4
Why is data modeling
considered crucial?
 Data is viewed as a resource to be shared by as
many processes as possible. As a result, data
must be organized in a way that is flexible and
adaptable to unanticipated business
requirements – and that is the purpose of data
modeling.
5
What is Data Model
 Data Model is a collection of conceptual tools for
describing data, data relationships, data semantics
and consistency constraint.
 It provides a way to describe the design of a database
at the physical, logical and view levels.
6
 Conceptual : describes WHAT the system contains
 Logical : describes HOW the system will be implemented,
regardless of the DBMS
 Physical : describes HOW the system will be implemented
using a specific DBMS
7
Different Data Models
There are several notations for data modeling, but
the actual model is frequently called an entity
relationship diagram (ERD).
An ERD depicts data in terms of the entities and
relationships described by the data
8
Data Modeling
Data Modeling
Concepts
Data Model Elements 10
ER models have the following core concepts
 Entity – A concept to abstractly represent all instances of a group of
similar ‘things.
An entity is a class of persons, places, objects, events, or concepts
about which we need to capture and store data.
An entity instance is a single occurrence of an entity.
 Attribute – a descriptive property or characteristic of an entity. It is
a simple, atomic data item like a date, a name, a number [also called
Property or Field ]
Data Model Elements 11
 A compound attribute is one that actually consists of more
primitive attributes. Synonyms in different data modeling
languages are numerous: concatenated attribute, composite
attribute, and data structure.
 Relationship – an association that exists between one or more
entities. The relationship may represent an event that links
the entities or merely a logical affinity that exists between the
entities.
Data Model Elements 12
Attributes Domains:
The values for each attribute are defined in terms of three properties: data type,
domain, and default.
 The data type for an attribute defines what class of data can be stored in that
attribute.
 An attribute’s data type determines its domain.
 The domain of an attribute defines what values an attribute can
legitimately take on.
 Every attribute should have a logical default value.
 The default value for an attribute is that value which will be recorded if
not specified by the user.
Data Model Elements 13
Attributes identification:
Every entity must have an identifier or key.
 An key is an attribute, or a group of attributes, which assumes a
unique value for each entity instance. It is sometimes called an
identifier.
 A group of attributes that uniquely identifies an instance of an
entity is called a concatenated key. Synonyms include composite
key and compound key
 A primary key is that candidate key which will most commonly be
used to uniquely identify a single entity instance.
 Any candidate key that is not selected to become the primary key
is called an alternate key.
Data Model Elements 14
Cardinality:
Each relationship on an ERD also depicts the complexity or
degree of each relationship and this is called cardinality.
 Cardinality defines the minimum and maximum
number of occurrences of one entity for a single
occurrence of the related entity. Because all
relationships are bi-directional, cardinality must be
defined in both directions for every relationship.
Given that …
 “Customer” is an entity.
 “Product” is an entity.
 For a “Customer” we need to know their
“customer number” attribute and “name”
attribute.
 For a “Product” we need to know the
“product name” attribute and “price”
attribute.
 “Sale” is an entity that is used to record the
interaction of “Customer” and “Product”.
15
Example
Why and When
 The purpose of a data model is to describe the
concepts relevant to a domain, the relationships
between those concepts, and information associated
with them
16
Weak and Strong
entity
18
Definition
 The entity set which does not have sufficient
attributes to form a primary key is called as Weak
entity set.
 An entity set that has a primary key is called as
Strong entity set
19
“
”
The relationship between weak
entity and strong entity set is called
as Identifying Relationship.
20
 A weak entity set is represented by doubly outlined box and
corresponding identifying relation by a doubly outlined diamond
 Here double lines indicate total participation of weak entity in
strong entity set it means that every payment must be related via
loan-payment to some account. The arrow from loan-payment to
loan indicates that each payment is for a single loan. The
discriminator of a weak entity set is underlined with dashed lines
rather than solid line.
21
Concepts
Concepts
 The primary key of a weak entity set is formed by the primary
key of the strong entity set on which the weak entity set is
existence dependent plus the weak entity sets discriminator. In
the above example {loan_number, payment_number} acts as
primary key for payment entity set.
 A member of a strong entity set is called dominant entity and
member of weak entity set is called as subordinate entity
22
23
Ad

More Related Content

What's hot (20)

Dbms architecture
Dbms architectureDbms architecture
Dbms architecture
Shubham Dwivedi
 
Array in c
Array in cArray in c
Array in c
Ravi Gelani
 
JDBC: java DataBase connectivity
JDBC: java DataBase connectivityJDBC: java DataBase connectivity
JDBC: java DataBase connectivity
Tanmoy Barman
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
NILESH UCHCHASARE
 
Relational algebra ppt
Relational algebra pptRelational algebra ppt
Relational algebra ppt
GirdharRatne
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
Shakila Mahjabin
 
The Relational Database Model
The Relational Database ModelThe Relational Database Model
The Relational Database Model
Shishir Aryal
 
Characteristic of dabase approach
Characteristic of dabase approachCharacteristic of dabase approach
Characteristic of dabase approach
Luina Pani
 
Object-oriented concepts
Object-oriented conceptsObject-oriented concepts
Object-oriented concepts
BG Java EE Course
 
Object Oriented Programming
Object Oriented ProgrammingObject Oriented Programming
Object Oriented Programming
Iqra khalil
 
Tokens in C++
Tokens in C++Tokens in C++
Tokens in C++
Mahender Boda
 
Aggregate function
Aggregate functionAggregate function
Aggregate function
Rayhan Chowdhury
 
C++ classes tutorials
C++ classes tutorialsC++ classes tutorials
C++ classes tutorials
Mayank Jain
 
Characteristics and Advantages of Database Management System
Characteristics and Advantages of Database Management SystemCharacteristics and Advantages of Database Management System
Characteristics and Advantages of Database Management System
CharthaGaglani
 
Basic concept of OOP's
Basic concept of OOP'sBasic concept of OOP's
Basic concept of OOP's
Prof. Dr. K. Adisesha
 
Visibility control in java
Visibility control in javaVisibility control in java
Visibility control in java
Tech_MX
 
SQL Views
SQL ViewsSQL Views
SQL Views
baabtra.com - No. 1 supplier of quality freshers
 
ER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMSER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMS
ssuser20b618
 
ER Model in DBMS
ER Model in DBMSER Model in DBMS
ER Model in DBMS
Kabindra Koirala
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMS
koolkampus
 

Viewers also liked (20)

Entity (types, attibute types)
Entity (types, attibute types)Entity (types, attibute types)
Entity (types, attibute types)
Zaheer Soomro
 
Slide 6 er strong & weak entity
Slide 6 er  strong & weak entitySlide 6 er  strong & weak entity
Slide 6 er strong & weak entity
Visakh V
 
Relationships within the relational database
Relationships within the relational databaseRelationships within the relational database
Relationships within the relational database
Janecatalla
 
Entity Relationship Diagram2
Entity Relationship Diagram2Entity Relationship Diagram2
Entity Relationship Diagram2
sadeenedian08
 
Ch 6 Logical D B Design
Ch 6  Logical D B  DesignCh 6  Logical D B  Design
Ch 6 Logical D B Design
guest8fdbdd
 
Physical database design(database)
Physical database design(database)Physical database design(database)
Physical database design(database)
welcometofacebook
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
Slideshare
 
Dfd examples
Dfd examplesDfd examples
Dfd examples
Mohit
 
DBMS UNIT1
DBMS UNIT1DBMS UNIT1
DBMS UNIT1
CHANDRA BHUSHAN
 
Er
ErEr
Er
satyaranjan38
 
abuukarE r model
abuukarE r modelabuukarE r model
abuukarE r model
abukarducale
 
Data Models In Database Management System
Data Models In Database Management SystemData Models In Database Management System
Data Models In Database Management System
Amad Ahmad
 
Entity-Relationship Model - Model Entitat Relació (ER)
Entity-Relationship Model - Model Entitat Relació (ER)Entity-Relationship Model - Model Entitat Relació (ER)
Entity-Relationship Model - Model Entitat Relació (ER)
Miquel Boada Artigas
 
Weak ,Strong Syllables2a
Weak ,Strong Syllables2aWeak ,Strong Syllables2a
Weak ,Strong Syllables2a
Dr. Cupid Lucid
 
9 relational database concepts
9 relational database concepts9 relational database concepts
9 relational database concepts
Kumar
 
DBMS Course Overview
DBMS Course OverviewDBMS Course Overview
DBMS Course Overview
Eunice Orozco
 
modelingtools
modelingtoolsmodelingtools
modelingtools
learnt
 
Database System Concepts and Architecture
Database System Concepts and ArchitectureDatabase System Concepts and Architecture
Database System Concepts and Architecture
sontumax
 
Understanding operating systems 5th ed ch11
Understanding operating systems 5th ed ch11Understanding operating systems 5th ed ch11
Understanding operating systems 5th ed ch11
BarrBoy
 
Computer security design principles
Computer security design principlesComputer security design principles
Computer security design principles
Shaishav Dahal
 
Entity (types, attibute types)
Entity (types, attibute types)Entity (types, attibute types)
Entity (types, attibute types)
Zaheer Soomro
 
Slide 6 er strong & weak entity
Slide 6 er  strong & weak entitySlide 6 er  strong & weak entity
Slide 6 er strong & weak entity
Visakh V
 
Relationships within the relational database
Relationships within the relational databaseRelationships within the relational database
Relationships within the relational database
Janecatalla
 
Entity Relationship Diagram2
Entity Relationship Diagram2Entity Relationship Diagram2
Entity Relationship Diagram2
sadeenedian08
 
Ch 6 Logical D B Design
Ch 6  Logical D B  DesignCh 6  Logical D B  Design
Ch 6 Logical D B Design
guest8fdbdd
 
Physical database design(database)
Physical database design(database)Physical database design(database)
Physical database design(database)
welcometofacebook
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
Slideshare
 
Dfd examples
Dfd examplesDfd examples
Dfd examples
Mohit
 
Data Models In Database Management System
Data Models In Database Management SystemData Models In Database Management System
Data Models In Database Management System
Amad Ahmad
 
Entity-Relationship Model - Model Entitat Relació (ER)
Entity-Relationship Model - Model Entitat Relació (ER)Entity-Relationship Model - Model Entitat Relació (ER)
Entity-Relationship Model - Model Entitat Relació (ER)
Miquel Boada Artigas
 
Weak ,Strong Syllables2a
Weak ,Strong Syllables2aWeak ,Strong Syllables2a
Weak ,Strong Syllables2a
Dr. Cupid Lucid
 
9 relational database concepts
9 relational database concepts9 relational database concepts
9 relational database concepts
Kumar
 
DBMS Course Overview
DBMS Course OverviewDBMS Course Overview
DBMS Course Overview
Eunice Orozco
 
modelingtools
modelingtoolsmodelingtools
modelingtools
learnt
 
Database System Concepts and Architecture
Database System Concepts and ArchitectureDatabase System Concepts and Architecture
Database System Concepts and Architecture
sontumax
 
Understanding operating systems 5th ed ch11
Understanding operating systems 5th ed ch11Understanding operating systems 5th ed ch11
Understanding operating systems 5th ed ch11
BarrBoy
 
Computer security design principles
Computer security design principlesComputer security design principles
Computer security design principles
Shaishav Dahal
 
Ad

Similar to Database Modeling Using Entity.. Weak And Strong Entity Types (20)

Data Modeling PPT
Data Modeling PPTData Modeling PPT
Data Modeling PPT
Trinath
 
8.pptx
8.pptx8.pptx
8.pptx
Doris292547
 
DATA MODELING.pptx
DATA MODELING.pptxDATA MODELING.pptx
DATA MODELING.pptx
NishimwePrince
 
Chapter 8
Chapter 8Chapter 8
Chapter 8
Ahmed Magdy
 
Chap08
Chap08Chap08
Chap08
professorkarla
 
Chapter 2. Concepctual design -.pptx
Chapter 2. Concepctual design -.pptxChapter 2. Concepctual design -.pptx
Chapter 2. Concepctual design -.pptx
santosh96234
 
Entity-Relationship Diagram (ERD) Material.pptx
Entity-Relationship Diagram (ERD) Material.pptxEntity-Relationship Diagram (ERD) Material.pptx
Entity-Relationship Diagram (ERD) Material.pptx
sastradipraja
 
Data Modelling..pptx
Data Modelling..pptxData Modelling..pptx
Data Modelling..pptx
DhanshreeKondkar1
 
Entity relationship Models from Chapter 4
Entity relationship Models from Chapter  4Entity relationship Models from Chapter  4
Entity relationship Models from Chapter 4
ssuserb53446
 
Week 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data ModelingWeek 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data Modeling
oudesign
 
Data Modelling on the Relation between two or more variables
Data Modelling on the Relation between two or more variablesData Modelling on the Relation between two or more variables
Data Modelling on the Relation between two or more variables
AminuHassanJakada1
 
database.pptx
database.pptxdatabase.pptx
database.pptx
lumaeducation
 
A database is a means of storing information in such a way that information c...
A database is a means of storing information in such a way that information c...A database is a means of storing information in such a way that information c...
A database is a means of storing information in such a way that information c...
ronaldgreaves
 
Datamodelling
DatamodellingDatamodelling
Datamodelling
Fajar Baskoro
 
Use analyzed requirements in the design of database.pptx
Use analyzed requirements in the design of database.pptxUse analyzed requirements in the design of database.pptx
Use analyzed requirements in the design of database.pptx
MwangaPrayGod
 
PHP mysql Er diagram
PHP mysql  Er diagramPHP mysql  Er diagram
PHP mysql Er diagram
Mudasir Syed
 
Chapter10 conceptual data modeling
Chapter10 conceptual data modelingChapter10 conceptual data modeling
Chapter10 conceptual data modeling
Dhani Ahmad
 
Erd chapter 3
Erd chapter 3Erd chapter 3
Erd chapter 3
Nargis Ehsan
 
Dbms
DbmsDbms
Dbms
ANJALIKIRAN
 
D I T211 Chapter 3
D I T211    Chapter 3D I T211    Chapter 3
D I T211 Chapter 3
askme
 
Data Modeling PPT
Data Modeling PPTData Modeling PPT
Data Modeling PPT
Trinath
 
Chapter 2. Concepctual design -.pptx
Chapter 2. Concepctual design -.pptxChapter 2. Concepctual design -.pptx
Chapter 2. Concepctual design -.pptx
santosh96234
 
Entity-Relationship Diagram (ERD) Material.pptx
Entity-Relationship Diagram (ERD) Material.pptxEntity-Relationship Diagram (ERD) Material.pptx
Entity-Relationship Diagram (ERD) Material.pptx
sastradipraja
 
Entity relationship Models from Chapter 4
Entity relationship Models from Chapter  4Entity relationship Models from Chapter  4
Entity relationship Models from Chapter 4
ssuserb53446
 
Week 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data ModelingWeek 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data Modeling
oudesign
 
Data Modelling on the Relation between two or more variables
Data Modelling on the Relation between two or more variablesData Modelling on the Relation between two or more variables
Data Modelling on the Relation between two or more variables
AminuHassanJakada1
 
A database is a means of storing information in such a way that information c...
A database is a means of storing information in such a way that information c...A database is a means of storing information in such a way that information c...
A database is a means of storing information in such a way that information c...
ronaldgreaves
 
Use analyzed requirements in the design of database.pptx
Use analyzed requirements in the design of database.pptxUse analyzed requirements in the design of database.pptx
Use analyzed requirements in the design of database.pptx
MwangaPrayGod
 
PHP mysql Er diagram
PHP mysql  Er diagramPHP mysql  Er diagram
PHP mysql Er diagram
Mudasir Syed
 
Chapter10 conceptual data modeling
Chapter10 conceptual data modelingChapter10 conceptual data modeling
Chapter10 conceptual data modeling
Dhani Ahmad
 
D I T211 Chapter 3
D I T211    Chapter 3D I T211    Chapter 3
D I T211 Chapter 3
askme
 
Ad

Database Modeling Using Entity.. Weak And Strong Entity Types

  • 1. Database Modeling Using Entity Weak And Strong Entity Types
  • 2. Data Modeling Data modeling : A technique for organizing and documenting a system’s DATA. Data modeling is sometimes called database modeling because a data model is usually implemented as a database. It is sometimes called information modeling. Entity relationship diagram (ERD) : A data model utilizing several notations to depict data in terms of the entities and relationships described by that 2
  • 3.  Process of creating a data model for an information system by applying formal data modeling techniques.  Process used to define and analyze data requirements needed to support the business processes. 3 Data Modeling
  • 4. “ One way to structure unstructured problems is to Draw Models ” 4
  • 5. Why is data modeling considered crucial?  Data is viewed as a resource to be shared by as many processes as possible. As a result, data must be organized in a way that is flexible and adaptable to unanticipated business requirements – and that is the purpose of data modeling. 5
  • 6. What is Data Model  Data Model is a collection of conceptual tools for describing data, data relationships, data semantics and consistency constraint.  It provides a way to describe the design of a database at the physical, logical and view levels. 6
  • 7.  Conceptual : describes WHAT the system contains  Logical : describes HOW the system will be implemented, regardless of the DBMS  Physical : describes HOW the system will be implemented using a specific DBMS 7 Different Data Models
  • 8. There are several notations for data modeling, but the actual model is frequently called an entity relationship diagram (ERD). An ERD depicts data in terms of the entities and relationships described by the data 8 Data Modeling
  • 10. Data Model Elements 10 ER models have the following core concepts  Entity – A concept to abstractly represent all instances of a group of similar ‘things. An entity is a class of persons, places, objects, events, or concepts about which we need to capture and store data. An entity instance is a single occurrence of an entity.  Attribute – a descriptive property or characteristic of an entity. It is a simple, atomic data item like a date, a name, a number [also called Property or Field ]
  • 11. Data Model Elements 11  A compound attribute is one that actually consists of more primitive attributes. Synonyms in different data modeling languages are numerous: concatenated attribute, composite attribute, and data structure.  Relationship – an association that exists between one or more entities. The relationship may represent an event that links the entities or merely a logical affinity that exists between the entities.
  • 12. Data Model Elements 12 Attributes Domains: The values for each attribute are defined in terms of three properties: data type, domain, and default.  The data type for an attribute defines what class of data can be stored in that attribute.  An attribute’s data type determines its domain.  The domain of an attribute defines what values an attribute can legitimately take on.  Every attribute should have a logical default value.  The default value for an attribute is that value which will be recorded if not specified by the user.
  • 13. Data Model Elements 13 Attributes identification: Every entity must have an identifier or key.  An key is an attribute, or a group of attributes, which assumes a unique value for each entity instance. It is sometimes called an identifier.  A group of attributes that uniquely identifies an instance of an entity is called a concatenated key. Synonyms include composite key and compound key  A primary key is that candidate key which will most commonly be used to uniquely identify a single entity instance.  Any candidate key that is not selected to become the primary key is called an alternate key.
  • 14. Data Model Elements 14 Cardinality: Each relationship on an ERD also depicts the complexity or degree of each relationship and this is called cardinality.  Cardinality defines the minimum and maximum number of occurrences of one entity for a single occurrence of the related entity. Because all relationships are bi-directional, cardinality must be defined in both directions for every relationship.
  • 15. Given that …  “Customer” is an entity.  “Product” is an entity.  For a “Customer” we need to know their “customer number” attribute and “name” attribute.  For a “Product” we need to know the “product name” attribute and “price” attribute.  “Sale” is an entity that is used to record the interaction of “Customer” and “Product”. 15 Example
  • 16. Why and When  The purpose of a data model is to describe the concepts relevant to a domain, the relationships between those concepts, and information associated with them 16
  • 18. 18
  • 19. Definition  The entity set which does not have sufficient attributes to form a primary key is called as Weak entity set.  An entity set that has a primary key is called as Strong entity set 19
  • 20. “ ” The relationship between weak entity and strong entity set is called as Identifying Relationship. 20
  • 21.  A weak entity set is represented by doubly outlined box and corresponding identifying relation by a doubly outlined diamond  Here double lines indicate total participation of weak entity in strong entity set it means that every payment must be related via loan-payment to some account. The arrow from loan-payment to loan indicates that each payment is for a single loan. The discriminator of a weak entity set is underlined with dashed lines rather than solid line. 21 Concepts
  • 22. Concepts  The primary key of a weak entity set is formed by the primary key of the strong entity set on which the weak entity set is existence dependent plus the weak entity sets discriminator. In the above example {loan_number, payment_number} acts as primary key for payment entity set.  A member of a strong entity set is called dominant entity and member of weak entity set is called as subordinate entity 22
  • 23. 23