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

Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
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
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 

Recently uploaded (20)

Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
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
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 

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