1 12-6812 Advanced Database and Client Server Applications Susan Curtis, Paul Crowther, Alan Houldcroft, Peter Lake, John Whitfield.

Slides:



Advertisements
Similar presentations
ER Modeling Case Studies
Advertisements

Outline Data, Information & Knowledge Database DBMS Types of Models
Conceptual / semantic modelling
Chapter 2.2 V3.0 Napier University Dr Gordon Russell
Convert ER to Relational Database Entity relation Entity relation Attributes attributes Attributes attributes Primary key primary key Primary key primary.
Prof. Sin-Min Lee Department of Computer Science
ER Modeling Case Studies
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
1 Class Number – CS 304 Class Name - DBMS Instructor – Sanjay Madria Instructor – Sanjay Madria Lesson Title – EER Model –21th June.
Normalisation Ensuring data integrity in database design 1.
1 SA0951a Enhanced Entity-Relationship Modelling (EERM) and Mapping Reading: e.g. Connolly/Begg (4 th ed): Chapter 12 – Enhanced ERM; Mapping: “Step 6”
1 Database Systems: A Practical Approach to Design, Implementation and Management International Computer Science S. Carolyn Begg, Thomas Connolly Lecture.
ENTITY RELATIONSHIP DATA MODEL ELIZABETH GEORGE. INTRODUCTION Architect Aeronautical engineers Computer architects Traffic engineers.
Enhanced ER modeling techniques Transparencies
Entity-Relationship (E-R) Model
Mapping ERM to relational database
Enhanced Entity-Relationship Model (EER) 1. Enhanced-ER (EER) Model Concepts Includes all modeling concepts of basic ER Additional concepts: subclasses/superclasses,
Extending ER Diagrams (13) CPSC 356 Database Ellen Walker Hiram College (Includes figures from Database Systems: A Practical Approach to Design, Information.
Chapter 3 Relational Model Chapter 4 in Textbook.
Lecture4: Informal guidelines for good relational design Mapping ERD to Relation Ref. Chapter3 Lecture4 1.
1 Web-Enabled Decision Support Systems Entity-Relationship Modeling Prof. Name Position (123) University Name.
Entities and Attributes
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Entity Relationship Modeling
Switch off your Mobiles Phones or Change Profile to Silent Mode.
Dr Gordon Russell, Napier University Data Analysis 2 - V2.0 1 Data Analysis 2 Unit 2.2.
Copyright Ó Oracle Corporation, All rights reserved. Normalization Use the student note section below for further explanation of the slide content.Use.
1 CSE 480: Database Systems Lecture 4: Enhanced Entity-Relationship Modeling Reference: Read Chapter 8.1 – 8.5 of the textbook.
Switch off your Mobiles Phones or Change Profile to Silent Mode.
EXAMPLE. Subclasses and Superclasses Entity type may have sub-grouping that need to be represented explicitly. –Example: Employee may grouped into.
CSC271 Database Systems Lecture # 25. Summary: Previous Lecture  Structural constraints  Multiplicity  Cardinality  Participation  Connection traps.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Logical Design database design. Dr. Mohamed Osman Hegaz2 Conceptual Database Designing –Provides concepts that are close to the way many users perceive.
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)
Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Ramez Elmasri and Shamkant Navathe Enhanced-ER (EER) Model Concepts.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 4 Enhanced Entity-Relationship (EER) Modeling.
Lecture4: Informal guidelines for good relational design Mapping ERD to Relation Prepared by L. Nouf Almujally Ref. Chapter3 Lecture4 1.
Enhanced Entity-Relationship and UML Modeling. 2.
CS422 Principles of Database Systems Entity-Relationship Model Chengyu Sun California State University, Los Angeles.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
CS422 Principles of Database Systems Entity-Relationship Model
Databases (CS507) CHAPTER 7.
Enhanced Entity-Relationship Modeling
Enhanced Entity-Relationship Modeling
Enhanced Entity-Relationship and Object Modeling Objectives
Entity Relationship Diagrams
The Enhanced Entity- Relationship (EER) Model
EER Model – Chapter
Session 2 Welcome: The sixth learning sequence
Enhanced ER Modeling Transparencies
Database EER.
Lecture3: Data Modeling Using the Entity-Relationship Model.
ER Modeling Case Studies
Chapter 4+17 The Relational Model Pearson Education © 2014.
CS 3630 Database Design and Implementation
Enhanced Entity-Relationship Modeling
Chapter Entity-Relationship Modeling & Enhanced Entity- Relationship Modeling.
Relational Database Design (Top Down)
CS4222 Principles of Database System
Enhanced Entity-Relationship Modeling Transparencies
Practical Relevance Examples Class Laboratory
Enhanced Entity-Relationship Modeling Transparencies
ER Modeling Case Studies
Enhanced Entity-Relationship Modeling
Chapter Entity-Relationship Modeling & Enhanced Entity- Relationship Modeling.
Database EER.
Enhanced Entity-Relationship Modeling
Data Analysis 2 Unit 2.2 Dr Gordon Russell, Napier University
Enhanced Entity-Relationship Modeling
Presentation transcript:

Advanced Database and Client Server Applications Susan Curtis, Paul Crowther, Alan Houldcroft, Peter Lake, John Whitfield

2 The course… Modelling Designing Processing (Oracle, SQL Server) Data Base Administration Client Server topic Implementation (build)

3 The assessment Poster (individual)10% Phase Test (SQL Server)10% Project (group) –Part 1 – design 15% –Part 2 – implementation 15% Exam50%

4 The resources Blackboard TEXT: Database Systems Connolly and Begg 4 th edn (or 3rd)

5 Data Modeling lectures  ER  EER  Object modelling

6 ER Model Entities Keys Attributes Relationships

7 Entity Relationship Attribute

8 Employee NINO name first name init surname address street city post code sex salary birth date Department number name location [1..5] /number of emps Project Proj ID name start date Dependent name relationship supervises 0..* * has 4..* works for 1 manages * Works on controls 1 0..*

9 Problems in ER models 1 Connection Traps: - Fan Trap eg A faculty operates several subject groups and employs many staff. faculty StaffS group employs operates 1 0..* 1

10 Which building do I work in? S group isACES cn ACES Staff scACESs curtis ah ACESa houldcroft plACESp lake faculty ACES harmer sbsstodart cscollegiate Which s group do I belong to? faculty StaffS group employs operates1 0..* 1

11 Problems in ER models 2 Connection Traps: - Chasm Trap Not all staff in the faculty belong to a subject group We can no longer determine the faculty for some staff faculty StaffS group employs operates * 1

12 Add the missing relationship faculty StaffS group employs operates * 1 belongs 1 0..*

13 A supplier can supply any part to any customer supplier part customer suppliesto 0..* supplier part customer 0..* Supplier of Customer part

14 Add a new relationship ? supplier part customer supplies to 0..* provides0..* We still cannot tell which supplier supplies which part to which customer !

15 A three way relationship supplier part customer 0..* supplies

16 0..* supplies Supplier Supp NO name address Part PartNo price Customer CustID Name address quantity Attributes on a relationship Also needs a combined key of: CustID PartNo SuppNo

17 0..* Supplier Supp NO name address Part PartNo price Customer CustID Name address Supplied quantity Weak entity An entity who’s existence is dependent on another entity’s existence

18 Rationale for EER integrity, consistency, correctness a different way of looking at the real world, to help us understand it. may help to avoid traps.

19 Heavy Entities eg employee table NULL field problem

20 Partition/ fragment Employee Current Employee Past Employee { mandatory, Or}

21 Enhanced Entity Relationship Model EER Employee Manager Subclasses and superclasses ClerkSales person Mandatory / Optional And / Or

22 Class/ subclass concepts 1 A member of a sub class MUST have a corresponding entry in the super class. But not vice versa (optional tag).

23 Class/ subclass concepts 2 A member entity / occurrence in a sub class represents the same real world entity as the one in the superclass but in a distinct specific role. eg employee w123 may appear in the subclass clerk as well as in the superclass employee. This may be implemented in 2 different tables (problem of converting EER to ER).

24 Class/ subclass concepts 3 Attribute inheritance any member (occurrence) in a sub class inherits all the attributes of the corresponding super class, including the primary key also inherits all relationship instances of the parent superclass instance. May have its own relationships

25 Attribute inheritance Employee NINO {PK} Name first initial surname dob Secretary ty speed Technician grade Engineer type Salaried grade Hourly hour rate ManagerProject {mandatory, OR}{optional,OR} supervises

26 Class/ subclass concepts 4 specialisation generalisation

27 Specialisation / Generalisation Employee NINO {PK} Name first initial surname dob Secretary ty speed Technician grade Engineer type Salaried grade Hourly hour rate ManagerProject {mandatory, OR}{optional,OR} supervises

28 Class/ subclass concepts 5: lattice Employee Manager ClerkSales person Trainee Sales Trainee

29  A member of a sub class MUST have a corresponding entry in the super class  A member entity / occurrence in a sub class represents the same real world entity as the one in the superclass but in a distinct specific role.  any member (occurrence) in a sub class inherits all the attributes of the corresponding super class  specialisation / generalisation  lattice  categories Class / subclass

30 Connolly (4 th edn) ch11 and 12 Connolly (3 rd edn) ch11 and 12 Elmasri ch 21 Enhanced Entity Relationship Model EER