SlideShare a Scribd company logo
Subject Name Code Credit Hours
Database System COMP 219 3
Chapter VI
Subject Name Code Credit Hours
Database System COMP 219 3
E-R Diagram
• Symbol Description
Entity Type
Attribute
Key Attribute
Subject Name Code Credit Hours
Database System COMP 219 3
E-R Diagram
Symbol Description
Composite Attribute
Multivalued attribute
Attribute
Subject Name Code Credit Hours
Database System COMP 219 3
E-R Diagram
Symbol Description
Derived Attribute
Relationship
Subject Name Code Credit Hours
Database System COMP 219 3
E-R Diagram
• Symbol Description
Identifying Relationship
Weak Entity Type
Subject Name Code Credit Hours
Database System COMP 219 3
E-R Diagram
• Symbol Description
E1 E2R
Total participation of E2 in R &
Partial Participation of E1 in R
E1 E2R
1 1
Cardinality Ratio
E2R
Min,max
Structural constraints
(min,max) on participation of
Environmental in R
Subject Name Code Credit Hours
Database System COMP 219 3
Recursive Relationship
• If the same entity type partcipates in a
relationship more than once in different roles.
• E.g.. Employee
Supervising
Supervisor
Supervise
Subject Name Code Credit Hours
Database System COMP 219 3
Design of an E-R Database Schema
The steps involved in designing an E-R database schema are,
• Identify entity types and their entity sets.
• List out the attributes of each entity type.
• Relate several entities by specifyiing some relationship that
exists among them.
• Specify some attributes of relation if any.
• Specify Generalization and specialization any exists.
• Specify Aggregation (global) if any used.
Subject Name Code Credit Hours
Database System COMP 219 3
Design Process:
• The main phases involved in designing a ER db schema is shown below,
Mini world
Requirements collection & Analysis
Data Requirements
Conceptual Design
Conceptual schema
Logical Design
Physical design
Logical schema
Internal Schema
Transaction
implementation
Functional Requirements
Functional Analysis
High level Transaction
specification
Application program
Design
App.pgms
DBMS
Independen
t
DBMS
Specific
Subject Name Code Credit Hours
Database System COMP 219 3
Requirements collection & Analysis
• The db designers interview db users to understand & document their
requirements.
• They find out data requirements (what data are stored in the db).
Conceptual Design:
• Once the requirements are documented , the next step is to create
conceptual schema which carried out in conceptual design Phase.
• It describes the structure of a db in the form of entity type, relationship
among them & constraints.
Subject Name Code Credit Hours
Database System COMP 219 3
Logical Design
• The actual implementation of the db is carried out using DBMS.
Physical Design
 The last phase is the internal storage structures, indexes,
access paths, and file organizations for the db files are
specified.
 In parallel with these activities, Application programs are
designed and implemented as db transactions.
Subject Name Code Credit Hours
Database System COMP 219 3
EER Model- Enhanced or Extended E-R model
• Using E-R model only the basic features of a db.
• Some enhanced features such as Specialization, Generalization, Union &
aggregation can be shown using EER model.
A. SPECIALIZATION:
The process of designating sub grouping within an
entity set..
Subject Name Code Credit Hours
Database System COMP 219 3
E.g…..
Employee
IS A
Secretary Technician Manager
eid ename eaddr Job
Typing speed
Mgrid
Subject Name Code Credit Hours
Database System COMP 219 3It is also represented as
Employee
eid ename eaddr Job
d
Secretary Technician Manager
d
Job Type
Salary Type
Hourly Regular
Defining attribute
Sub classes
Subject Name Code Credit Hours
Database System COMP 219 3
Generalization
•The process of defining a
generalized entity type
from the given entity types.
Subject Name Code Credit Hours
Database System COMP 219 3E.g…
CAR TRUCK
PriceMax speed
Vehicle ID No. of seats Vehicle ID
Price
No. Of Axles
Tonnage
Subject Name Code Credit Hours
Database System COMP 219 3
Vehicle
Vehicle ID
Price
d
CAR
TRUCK
Max speed
No. of seats Tonnage
No. Of Axles
Subject Name Code Credit Hours
Database System COMP 219 3
History of Database Systems
• 1950s and early 1960s:
– Data processing using magnetic tapes for storage
• Tapes provide only sequential access
– Punched cards for input
• Late 1960s and 1970s:
– Hard disks allow direct access to data
– Network and hierarchical data models in widespread use
– Ted Codd defines the relational data model
• Would win the ACM Turing Award for this work
• IBM Research begins System R prototype
• UC Berkeley begins Ingres prototype
– High-performance (for the era) transaction processing
Subject Name Code Credit Hours
Database System COMP 219 3
History (cont.)
• 1980s:
– Research relational prototypes evolve into commercial systems
• SQL becomes industrial standard
– Parallel and distributed database systems
– Object-oriented database systems
• 1990s:
– Large decision support and data-mining applications
– Large multi-terabyte data warehouses
– Emergence of Web commerce
• 2000s:
– XML and XQuery standards
– Automated database administration

More Related Content

Similar to Dmbs chapter vi

Dbms chapter vii
Dbms chapter viiDbms chapter vii
Dbms chapter vii
Bala Ganesh
 
databasesystemsconollyslide1-151102101031-lva1-app6892.pptx
databasesystemsconollyslide1-151102101031-lva1-app6892.pptxdatabasesystemsconollyslide1-151102101031-lva1-app6892.pptx
databasesystemsconollyslide1-151102101031-lva1-app6892.pptx
salutiontechnology
 
Database systems - Chapter 1
Database systems - Chapter 1Database systems - Chapter 1
Database systems - Chapter 1
shahab3
 
An Introduction To Software Development - Architecture & Detailed Design
An Introduction To Software Development - Architecture & Detailed DesignAn Introduction To Software Development - Architecture & Detailed Design
An Introduction To Software Development - Architecture & Detailed Design
Blue Elephant Consulting
 
Performance Optimization of Recommendation Training Pipeline at Netflix DB Ts...
Performance Optimization of Recommendation Training Pipeline at Netflix DB Ts...Performance Optimization of Recommendation Training Pipeline at Netflix DB Ts...
Performance Optimization of Recommendation Training Pipeline at Netflix DB Ts...
Databricks
 
Admission in india 2015
Admission in india 2015Admission in india 2015
Admission in india 2015
Edhole.com
 
dbms intro
  dbms intro  dbms intro
dbms intro
Pooja Pathak
 
Dbms
DbmsDbms
Dbms
saurav-IT
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
NILESH UCHCHASARE
 
Introduction to DBMS.pptx
Introduction to DBMS.pptxIntroduction to DBMS.pptx
Introduction to DBMS.pptx
Sreenivas R
 
DBMS
DBMS DBMS
Database management system.pptx
Database management system.pptxDatabase management system.pptx
Database management system.pptx
AshmitKashyap1
 
INTRODUCTION OF DATA BASE
INTRODUCTION OF DATA BASEINTRODUCTION OF DATA BASE
INTRODUCTION OF DATA BASE
AMUTHAG2
 
Unit 1: Introduction to DBMS Unit 1 Complete
Unit 1: Introduction to DBMS Unit 1 CompleteUnit 1: Introduction to DBMS Unit 1 Complete
Unit 1: Introduction to DBMS Unit 1 Complete
Raj vardhan
 
IT6701 Information Management - Unit I
IT6701 Information Management - Unit I  IT6701 Information Management - Unit I
IT6701 Information Management - Unit I
pkaviya
 
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
DATABASE    MANAGEMENT SYSTEM	 ARCHITECTUREDATABASE    MANAGEMENT SYSTEM	 ARCHITECTURE
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
DeepakM509554
 
Procedural vs. object oriented programming
Procedural vs. object oriented programmingProcedural vs. object oriented programming
Procedural vs. object oriented programming
Haris Bin Zahid
 
DBMS introduction and functionality of of dbms
DBMS introduction and functionality of  of dbmsDBMS introduction and functionality of  of dbms
DBMS introduction and functionality of of dbms
ranjana dalwani
 

Similar to Dmbs chapter vi (20)

Dbms chapter iv
Dbms chapter ivDbms chapter iv
Dbms chapter iv
 
Dbms chapter vii
Dbms chapter viiDbms chapter vii
Dbms chapter vii
 
databasesystemsconollyslide1-151102101031-lva1-app6892.pptx
databasesystemsconollyslide1-151102101031-lva1-app6892.pptxdatabasesystemsconollyslide1-151102101031-lva1-app6892.pptx
databasesystemsconollyslide1-151102101031-lva1-app6892.pptx
 
Database systems - Chapter 1
Database systems - Chapter 1Database systems - Chapter 1
Database systems - Chapter 1
 
An Introduction To Software Development - Architecture & Detailed Design
An Introduction To Software Development - Architecture & Detailed DesignAn Introduction To Software Development - Architecture & Detailed Design
An Introduction To Software Development - Architecture & Detailed Design
 
Performance Optimization of Recommendation Training Pipeline at Netflix DB Ts...
Performance Optimization of Recommendation Training Pipeline at Netflix DB Ts...Performance Optimization of Recommendation Training Pipeline at Netflix DB Ts...
Performance Optimization of Recommendation Training Pipeline at Netflix DB Ts...
 
Admission in india 2015
Admission in india 2015Admission in india 2015
Admission in india 2015
 
dbms intro
  dbms intro  dbms intro
dbms intro
 
Dbms
DbmsDbms
Dbms
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Introduction to DBMS.pptx
Introduction to DBMS.pptxIntroduction to DBMS.pptx
Introduction to DBMS.pptx
 
DBMS
DBMS DBMS
DBMS
 
Database management system.pptx
Database management system.pptxDatabase management system.pptx
Database management system.pptx
 
INTRODUCTION OF DATA BASE
INTRODUCTION OF DATA BASEINTRODUCTION OF DATA BASE
INTRODUCTION OF DATA BASE
 
DBMS
DBMSDBMS
DBMS
 
Unit 1: Introduction to DBMS Unit 1 Complete
Unit 1: Introduction to DBMS Unit 1 CompleteUnit 1: Introduction to DBMS Unit 1 Complete
Unit 1: Introduction to DBMS Unit 1 Complete
 
IT6701 Information Management - Unit I
IT6701 Information Management - Unit I  IT6701 Information Management - Unit I
IT6701 Information Management - Unit I
 
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
DATABASE    MANAGEMENT SYSTEM	 ARCHITECTUREDATABASE    MANAGEMENT SYSTEM	 ARCHITECTURE
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
 
Procedural vs. object oriented programming
Procedural vs. object oriented programmingProcedural vs. object oriented programming
Procedural vs. object oriented programming
 
DBMS introduction and functionality of of dbms
DBMS introduction and functionality of  of dbmsDBMS introduction and functionality of  of dbms
DBMS introduction and functionality of of dbms
 

More from Bala Ganesh

DDL,DML,1stNF
DDL,DML,1stNFDDL,DML,1stNF
DDL,DML,1stNF
Bala Ganesh
 
Dbms chapter viii
Dbms chapter viiiDbms chapter viii
Dbms chapter viii
Bala Ganesh
 
Dbms chapter iii
Dbms chapter iiiDbms chapter iii
Dbms chapter iiiBala Ganesh
 
Flip flop& RAM ROM
Flip flop& RAM ROMFlip flop& RAM ROM
Flip flop& RAM ROMBala Ganesh
 
Chap iii-Logic Gates
Chap iii-Logic GatesChap iii-Logic Gates
Chap iii-Logic GatesBala Ganesh
 
Chap ii.BCD code,Gray code
Chap ii.BCD code,Gray codeChap ii.BCD code,Gray code
Chap ii.BCD code,Gray codeBala Ganesh
 
Software engineering Questions and Answers
Software engineering Questions and AnswersSoftware engineering Questions and Answers
Software engineering Questions and AnswersBala Ganesh
 
Software testing
Software testingSoftware testing
Software testingBala Ganesh
 
Software Requirements
Software RequirementsSoftware Requirements
Software RequirementsBala Ganesh
 
Comp 111chp iv vi
Comp 111chp iv viComp 111chp iv vi
Comp 111chp iv viBala Ganesh
 

More from Bala Ganesh (20)

DDL,DML,1stNF
DDL,DML,1stNFDDL,DML,1stNF
DDL,DML,1stNF
 
sfdfds
sfdfdssfdfds
sfdfds
 
Dbms chapter viii
Dbms chapter viiiDbms chapter viii
Dbms chapter viii
 
Dbms chapter v
Dbms chapter vDbms chapter v
Dbms chapter v
 
Dbms chapter iii
Dbms chapter iiiDbms chapter iii
Dbms chapter iii
 
Flip flop& RAM ROM
Flip flop& RAM ROMFlip flop& RAM ROM
Flip flop& RAM ROM
 
karnaugh maps
karnaugh mapskarnaugh maps
karnaugh maps
 
Chap iii-Logic Gates
Chap iii-Logic GatesChap iii-Logic Gates
Chap iii-Logic Gates
 
Chap ii.BCD code,Gray code
Chap ii.BCD code,Gray codeChap ii.BCD code,Gray code
Chap ii.BCD code,Gray code
 
DEL-244Chep i
DEL-244Chep iDEL-244Chep i
DEL-244Chep i
 
Software engineering Questions and Answers
Software engineering Questions and AnswersSoftware engineering Questions and Answers
Software engineering Questions and Answers
 
Software testing
Software testingSoftware testing
Software testing
 
Design
DesignDesign
Design
 
Comp 107 cep 8
Comp 107 cep 8Comp 107 cep 8
Comp 107 cep 8
 
Comp 107 cep 7
Comp 107 cep 7Comp 107 cep 7
Comp 107 cep 7
 
Cocomo model
Cocomo modelCocomo model
Cocomo model
 
Software Requirements
Software RequirementsSoftware Requirements
Software Requirements
 
Comp107 chep6
Comp107 chep6Comp107 chep6
Comp107 chep6
 
Comp 111chp iv vi
Comp 111chp iv viComp 111chp iv vi
Comp 111chp iv vi
 
Comp 111 cep ii
Comp 111 cep iiComp 111 cep ii
Comp 111 cep ii
 

Recently uploaded

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
Kartik Tiwari
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
gb193092
 

Recently uploaded (20)

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
 

Dmbs chapter vi

  • 1. Subject Name Code Credit Hours Database System COMP 219 3 Chapter VI
  • 2. Subject Name Code Credit Hours Database System COMP 219 3 E-R Diagram • Symbol Description Entity Type Attribute Key Attribute
  • 3. Subject Name Code Credit Hours Database System COMP 219 3 E-R Diagram Symbol Description Composite Attribute Multivalued attribute Attribute
  • 4. Subject Name Code Credit Hours Database System COMP 219 3 E-R Diagram Symbol Description Derived Attribute Relationship
  • 5. Subject Name Code Credit Hours Database System COMP 219 3 E-R Diagram • Symbol Description Identifying Relationship Weak Entity Type
  • 6. Subject Name Code Credit Hours Database System COMP 219 3 E-R Diagram • Symbol Description E1 E2R Total participation of E2 in R & Partial Participation of E1 in R E1 E2R 1 1 Cardinality Ratio E2R Min,max Structural constraints (min,max) on participation of Environmental in R
  • 7. Subject Name Code Credit Hours Database System COMP 219 3 Recursive Relationship • If the same entity type partcipates in a relationship more than once in different roles. • E.g.. Employee Supervising Supervisor Supervise
  • 8. Subject Name Code Credit Hours Database System COMP 219 3 Design of an E-R Database Schema The steps involved in designing an E-R database schema are, • Identify entity types and their entity sets. • List out the attributes of each entity type. • Relate several entities by specifyiing some relationship that exists among them. • Specify some attributes of relation if any. • Specify Generalization and specialization any exists. • Specify Aggregation (global) if any used.
  • 9. Subject Name Code Credit Hours Database System COMP 219 3 Design Process: • The main phases involved in designing a ER db schema is shown below, Mini world Requirements collection & Analysis Data Requirements Conceptual Design Conceptual schema Logical Design Physical design Logical schema Internal Schema Transaction implementation Functional Requirements Functional Analysis High level Transaction specification Application program Design App.pgms DBMS Independen t DBMS Specific
  • 10. Subject Name Code Credit Hours Database System COMP 219 3 Requirements collection & Analysis • The db designers interview db users to understand & document their requirements. • They find out data requirements (what data are stored in the db). Conceptual Design: • Once the requirements are documented , the next step is to create conceptual schema which carried out in conceptual design Phase. • It describes the structure of a db in the form of entity type, relationship among them & constraints.
  • 11. Subject Name Code Credit Hours Database System COMP 219 3 Logical Design • The actual implementation of the db is carried out using DBMS. Physical Design  The last phase is the internal storage structures, indexes, access paths, and file organizations for the db files are specified.  In parallel with these activities, Application programs are designed and implemented as db transactions.
  • 12. Subject Name Code Credit Hours Database System COMP 219 3 EER Model- Enhanced or Extended E-R model • Using E-R model only the basic features of a db. • Some enhanced features such as Specialization, Generalization, Union & aggregation can be shown using EER model. A. SPECIALIZATION: The process of designating sub grouping within an entity set..
  • 13. Subject Name Code Credit Hours Database System COMP 219 3 E.g….. Employee IS A Secretary Technician Manager eid ename eaddr Job Typing speed Mgrid
  • 14. Subject Name Code Credit Hours Database System COMP 219 3It is also represented as Employee eid ename eaddr Job d Secretary Technician Manager d Job Type Salary Type Hourly Regular Defining attribute Sub classes
  • 15. Subject Name Code Credit Hours Database System COMP 219 3 Generalization •The process of defining a generalized entity type from the given entity types.
  • 16. Subject Name Code Credit Hours Database System COMP 219 3E.g… CAR TRUCK PriceMax speed Vehicle ID No. of seats Vehicle ID Price No. Of Axles Tonnage
  • 17. Subject Name Code Credit Hours Database System COMP 219 3 Vehicle Vehicle ID Price d CAR TRUCK Max speed No. of seats Tonnage No. Of Axles
  • 18. Subject Name Code Credit Hours Database System COMP 219 3 History of Database Systems • 1950s and early 1960s: – Data processing using magnetic tapes for storage • Tapes provide only sequential access – Punched cards for input • Late 1960s and 1970s: – Hard disks allow direct access to data – Network and hierarchical data models in widespread use – Ted Codd defines the relational data model • Would win the ACM Turing Award for this work • IBM Research begins System R prototype • UC Berkeley begins Ingres prototype – High-performance (for the era) transaction processing
  • 19. Subject Name Code Credit Hours Database System COMP 219 3 History (cont.) • 1980s: – Research relational prototypes evolve into commercial systems • SQL becomes industrial standard – Parallel and distributed database systems – Object-oriented database systems • 1990s: – Large decision support and data-mining applications – Large multi-terabyte data warehouses – Emergence of Web commerce • 2000s: – XML and XQuery standards – Automated database administration