Outline Data, Information & Knowledge Database DBMS Types of Models

Slides:



Advertisements
Similar presentations
Prof. Sin-Min Lee Department of Computer Science
Advertisements

Session 2 Welcome: The sixth learning sequence
Enhanced/Extended Relationship-Diagram
© Shamkant B. Navathe CC. © Shamkant B. Navathe CC Chapter 4 - Part I Enhanced Entity-Relationship and UML Modeling Copyright © 2004 Ramez Elmasri and.
1 Class Number – CS 304 Class Name - DBMS Instructor – Sanjay Madria Instructor – Sanjay Madria Lesson Title – EER Model –21th June.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4- 1.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4- 1.
Enhanced Entity-Relationship and UML Modeling
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 4 Enhanced Entity-Relationship (EER) Modeling.
1 Enhanced Entity Relationship Modelling EER Model Concepts Includes all basic ER modeling concepts Additional concepts: subclasses/superclasses specialization/generalization.
ENTITY RELATIONSHIP DATA MODEL ELIZABETH GEORGE. INTRODUCTION Architect Aeronautical engineers Computer architects Traffic engineers.
December 4, 2002 Data Modeling – James Cohen Enhanced Entity Relationship (EER) Model Presented by James Cohen.
Chapter 4 The Enhanced Entity-Relationship (EER) Model
© Shamkant B. Navathe CC METU Department of Computer Eng Ceng 302 Introduction to DBMS Enhanced Entity-Relationship (EER) Model by Pinar Senkul resources:
Chapter 41 Enhanced Entity-Relationship and Object Modeling.
EXTENDED-ER (EER) MODEL CONCEPTS. Enhanced-ER (EER) Model Concepts  Basic ER diagram + more concepts =EER model  Additional concepts:  Subclasses/superclasses.
Specialization and generalization
Enhanced Entity-Relationship and UML Modeling. Enhanced-ER (EER) Model Concepts Includes all modeling concepts of basic ER Additional concepts: subclasses/superclasses,
Enhanced Entity-Relationship Model (EER) 1. Enhanced-ER (EER) Model Concepts Includes all modeling concepts of basic ER Additional concepts: subclasses/superclasses,
CSE314 Database Systems Data Modeling Using the Entity- Relationship (ER) Model Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
Entities and Attributes
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 8 The Enhanced Entry-Relationship (EER) Model.
Chapter 4: The Enhanced ER Model and Business Rules
© Shamkant B. Navathe CC. © Shamkant B. Navathe CC Chapter 4 - Part I Enhanced Entity-Relationship and UML Modeling Copyright © 2004 Ramez Elmasri and.
EXAMPLE. Subclasses and Superclasses Entity type may have sub-grouping that need to be represented explicitly. –Example: Employee may grouped into.
Database Systems: Enhanced Entity-Relationship Modeling Dr. Taysir Hassan Abdel Hamid.
EER Model.
UNIT_2 1 DATABASE MANAGEMENT SYSTEM[DBMS] [Unit: 2] Prepared By Lavlesh Pandit SPCE MCA, Visnagar.
Databases Illuminated Chapter 3 The Entity Relationship Model.
Enhanced Entity-Relationship (EER) Modeling. Slide 4- 2 Chapter Outline EER stands for Enhanced ER or Extended ER EER Model Concepts Includes all modeling.
Keys for Relationship Sets The combination of primary keys of the participating entity sets forms a super key of a relationship set. – (customer-id, account-number)
1 CSBP430 – Database Systems Chapter 4: Enhanced Entity– Relationship and Object Modeling Elarbi Badidi College of Information Technology United Arab Emirates.
Exam 1 Review Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4- 1.
DatabaseIM ISU1 Fundamentals of Database Systems Chapter 3 Data Modeling Using Entity-Relationship Model.
Exam 1 Review Dr. Bernard Chen Ph.D. University of Central Arkansas.
Slide 4-1 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Revised by IB & SAM, Fasilkom UI, 2005 Exercise 1. a property or description.
© Shamkant B. Navathe CC Enhanced Entity-Relationship Copyright © 2004 Ramez Elmasri and Shamkant Navathe.
Topic 4 - Part I Enhanced Entity-Relationship and UML Modeling
Copyright © 2016 Ramez Elmasri and Shamkant B. Navathe CHAPTER 4 Enhanced Entity-Relationship (EER) Modeling Slide 1- 1.
Extended ER Modelling. Extended E-R Features: Specialization Top-down design process; we designate subgroupings within an entity set that are distinctive.
Lecture 3 A short revision of ER and EER modelling See R. Elmasri, S.B. Navathe. Fundamentals of Database Systems (third edition) Addison-wesley. Chapter.
Enhanced Entity-Relationship and UML Modeling. 2.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 4- 1.
Chapter 4_part2: The Enhanced Entity-Relationship (EER) Model.
Database Systems 主講人 : 陳建源 日期 :99/10/19 研究室 : 法 Chapter 4 Enhanced Entity-Relationship and Object Modeling.
Data Modeling Using the Entity- Relationship (ER) Model
Databases (CS507) CHAPTER 7.
Enhanced Entity-Relationship (EER) Model
The Enhanced Entity- Relationship (EER) Model
Enhanced Entity-Relationship and Object Modeling Objectives
© Shamkant B. Navathe CC.
Conceptual Design & ERD Modelling
Enhanced Entity-Relationship (EER) Modeling
The Enhanced Entity- Relationship (EER) Model
Enhanced Entity-Relationship (EER) Modeling
Session 2 Welcome: The sixth learning sequence
Enhanced Entity-Relationship (EER) Modeling
© Shamkant B. Navathe CC.
© Shamkant B. Navathe CC.
CS4222 Principles of Database System
Sampath Jayarathna Cal Poly Pomona
Database EER.
ENHANCED ENTITY-RELATIONSHIP (EER) MODEL
Sampath Jayarathna Cal Poly Pomona
© Shamkant B. Navathe CC.
Enhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) Modeling
Presentation transcript:

Outline Data, Information & Knowledge Database DBMS Types of Models E-R Model

Data, Information & Knowledge

Knowledge Knowledge is what we know helps us know where things are It also contains our beliefs and expectations. It is from this “map” that we base our decisions, constantly updated You can’t currently store knowledge in anything other than the brain two sources that the brain uses to build this knowledge - information and data.

Data facts of the World description of the World. We can perceive this data with our senses, and then the brain can process this.

Information knowledge was limited by our direct experiences. can capture data in information, to be accessed at different times. The information can be lost, but the data can’t be.

The infogineering model

Why does it matter that people mix them up ? Data is always correct (I can’t be 29 years old and 62 years old at the same time) but information can be wrong (there could be two files on me, one saying I was born in 1981, and one saying I was born in 1948). Information captures data at a single point. The data changes over time. Mistake : information is always an accurate reflection of the data.

Database Collection of data ? not every collection of data is a database An organized collection of related data Eg ?

Why do we need a database? Keep records of our: Clients Staff Volunteers To keep a record of activities and interventions; Keep sales records; Develop reports; Perform research

DBMS A software package/ system to facilitate the creation and maintenance of a computerized database. A database's properties are determined by its supporting DBMS and vice-versa

Why DBMS ? Availability Efficient access Abstraction Protection or Security measures to prevent unauthorized access Reliable storage & recovery of 100s of GB Querying/updating interface and API Support for many concurrent users Backup and recovery services.

What is the ultimate purpose of a database management system? Is to transform Data Information Knowledge Action

Advancements Navigational pointers from one record to another. eg: hierarchical model, Network model Relational model search for data by content, rather than by following links Entity-relationship model to overcome the problems of Relational model as a modelling lang. Object database and the XML database : for multimedia, engg, documents etc.

Entity-Relationship Model for representation of real-world represents overall logical structure of information grouping of data elements inter-relationships between groups simple and easy-to-use permits top-down approach for controlling details useful as a tool for communication between designer and user during requirements analysis and conceptual design

Core concepts Entity Entity set Strong entity type Weak entity type ( discriminator / partial key) Attributes Simple and composite attributes Single valued and multi valued attributes Stored and derived attributes Null attribute Key attribute

Relationships Degree Cardinality Mapping cardinalities One to one One to many Many to one Many to many

Participation constraints Total participation Partial participation Keys Super key Candidate key Primary key Foreign key

Notations used in E-R Diagrams

Enhanced E-R

Contents Why EER Modelling? Inheritance Specialization Generalization

Why EER Modeling ? Emergence of new technologies Semantic data modeling concepts

Inheritance Employee Sub class Super class Inheritance Secretary Technician Engineer Manager Clerk Sub class Super class Inheritance

Specialization Define a set of subclasses of an entity type Establish additional specific attributes with each sub class Establish additional specific relationship types between each subclass and entity types or other sub classes

May have several specializations of the same superclass The set of subclasses is based upon some distinguishing characteristics of the entities in the superclass May have several specializations of the same superclass {PERMANENT_EMPLOYEE, TEMPORARY_EMPLOYEE} based on method of pay {FACULTY, CLERK, TECHNICIAN} based upon job type specific attributes Eg : TypingSpeed of SECRETARY specific relationship types Eg: HOURLY_EMPLOYEE can BELONG TO some TRADE UNIONs etc.

Example

Generalization Inverse process of specialization Identify the common features of several entity types Generalize them into a single super class Eg : Employee is a generalization of {SECRETARY, ENGINEER, TECHNICIAN}

Example

CONSTRAINTS & CHARACTERISTICS OF SPECIALIZATION & GENERALIZATION

Outline Types of specialization Constraints on specialization Specialization & Generalization Hierarchies Lattices Summary

Types of Specialization (1/2) Predicate defined Condition specified Conditions are specified on the values of some attributes in the superclass Defining predicate Eg: JobType = “Secretary”

Types Types of Specialization (2/2) (1/2) Attribute defined If all subclasses in a specialization have membership condition on same attribute of the superclass Defining attribute Eg: JobType User Defined No condition for determining the membership of the subclass Specified individually for each entity by the user

Example Job Type Defining attribute Defining predicate “Technician” “Secretary” “Engineer”

Constraints on specialization Disjointness Constraint Subclasses of the specialization must be disjoint An entity can be a member of at most one of the subclasses of the specialization Not disjoint  Overlap Notation d O Disjointness Overlapping

Disjoint Rule A patient can either be outpatient or resident, but not both

Overlap rule A part may be both purchased and manufactured

Constraints on specialization Completeness Constraint Total every entity in the superclass must be a member of some subclass in the specialization/ generalization Shown in EER diagrams by a double line Eg: Employee {Hourly_Employee, Salaried_Employee} Partial allows an entity not to belong to any of the subclasses Shown in EER diagrams by a single line Eg: Employee need not be {Secretary, Technician, Engineer}

Total Specialization A patient must be either an outpatient or a resident patient

Partial Specialization A vehicle could be a car, a truck, or neither

Specialization Hierarchy & Lattice Every subclass has only one superclass single inheritance Lattice: A subclass can be subclass of more than one superclass multiple inheritance Same for generalization hierarchies or lattices Shared subclass: A subclass with more than one superclass

Example

Note In a lattice or hierarchy, a subclass inherits attributes not only of its direct superclass, but also of all its predecessor superclasses Specialization  top down approach Generalization  bottom up approach In practice, the combination of two processes is employed

Relationships of degree higher than two

Outline Binary or ternary relationships ? Constraints on n-ary relationships Aggregation Union / Category

Binary or ternary relationships ? On the basis of semantics of the situation Supply Project Supplier Part

Dividing into 3 binary relations Supplies Project Supplier Uses Can supply Part

Solution 1: Include the ternary relationship + 1 or more of the binary relationships (if they rep. diff. meanings & if all are needed for the appln.) Solution 2: Represent the ternary relationship as weak entity type with NO partial key & identifying relationships.

Constraints on n-ary relationships Cardinality Ratio Notation 1, M, N Min, Max Notation

Aggregation ER Model can’t represent relationships among relationships To represent relationship between a whole object & its component parts Relationships are treated as higher level entities

Example CAR Other Systems Chassis Drive-train (steel frame) Wheels Hub-Caps Tires Tubes represents IS-PART-OF (component) relationship Root class: CAR Component Classes: Chassis, Drive-Train, Other Systems, Wheels Root class: Wheels Component Classes: Tires, Tubes, Hub-Caps

Consider the ternary relationship works-on,

Suppose we want to record managers for tasks performed by an employee at a branch

E-R Diagram With Aggregation

Union / Category Engineering_Manager Engineer Manager  Salaried Employee Need to model a single superclass/subclass relationship with more than one superclass  subclass = collection of objects i.e. a subset of the “union” of distinct entity types

Example:

subset of the intersection of its superclasses Shared Sub class Category subset of the intersection of its superclasses shared subclass member must exist in all of its superclasses Attribute Inheritance : Total subset of the union of its superclasses category member must exist in any of its superclasses Attribute Inheritance : Selective

THANK YOU !!!