Db design / ER Modeling 20031 319B Database Systems Database Design Wilhelm Steinbuss Room G2.04, ext 4052

Slides:



Advertisements
Similar presentations
Conceptual Design using the Entity-Relationship Model
Advertisements

Database Management Systems, R. Ramakrishnan and J. Gehrke1 The Entity-Relationship Model Chapter 2.
The Entity-Relationship Model
IT420: Database Management and Organization
Systems Development Life Cycle
Relational Databases Chapter 4.
Databases Revision.
ETEC 100 Information Technology
Concepts of Database Management Sixth Edition
Chapter 6 Methodology Conceptual Databases Design Transparencies © Pearson Education Limited 1995, 2005.
Modeling Data The Entity Relationship Model (ER) For Database Design.
Lecture 2: Entity/Relationship modelling
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Methodology Conceptual Database Design
July 14, 2015ICS 424: recap1 Relational Database Design: Recap of ICS 324.
Modeling & Designing the Database
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
LOGICAL DATABASE DESIGN
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Chapter 4 The Relational Model.
IS 325 Notes for Wednesday September 18, 2013.
DATABASE MANAGEMENT SYSTEMS BASIC CONCEPTS 1. What is a database? A database is a collection of data which can be used: alone, or alone, or combined /
Chapters 17 & 18 Physical Database Design Methodology.
Db design / ER Modeling B Database Systems ER-Modeling Part 2 Wilhelm Steinbuss Room G2.04, ext 4052
ITEC224 Database Programming
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Database Technical Session By: Prof. Adarsh Patel.
Chapter 16 Methodology - Conceptual Database Design.
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
Methodology - Conceptual Database Design Transparencies
Software School of Hunan University Database Systems Design Part III Section 5 Design Methodology.
Methodology Conceptual Databases Design
9/14/2012ISC329 Isabelle Bichindaritz1 Database System Life Cycle.
CSCI 3140 Module 2 – Conceptual Database Design Theodore Chiasson Dalhousie University.
1 Chapter 15 Methodology Conceptual Databases Design Transparencies Last Updated: April 2011 By M. Arief
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
Lecture 7 Integrity & Veracity UFCE8K-15-M: Data Management.
The Relational Database Model
Methodology - Conceptual Database Design. 2 Design Methodology u Structured approach that uses procedures, techniques, tools, and documentation aids to.
1/26/2004TCSS545A Isabelle Bichindaritz1 Database Management Systems Design Methodology.
Chapters 15 &16 Conceptual and Logical Database Design Methodology.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Methodology - Conceptual Database Design
Part4 Methodology of Database Design Chapter 07- Overview of Conceptual Database Design Lu Wei College of Software and Microelectronics Northwestern Polytechnical.
1 Conceptual Design using the Entity- Relationship Model.
11-1 Copyright  Oracle Corporation, All rights reserved. What Are Constraints? Constraints enforce rules at the table level. Constraints prevent.
1 Theory, Practice & Methodology of Relational Database Design and Programming Copyright © Ellis Cohen Relational State Constraints These slides.
Chapter 15 & 16 Conceptual and Logical Database Design Methodology Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
1 Theory, Practice & Methodology of Relational Database Design and Programming Copyright © Ellis Cohen Relational State Assertions These slides.
CS 3630 Database Design and Implementation. Null Value The value of an attribute could be NULL NOT known at the moment or NOT Applicable Example Cell.
CSE 412/598 DATABASE MANAGEMENT COURSE NOTES 3. ENTITY-RELATIONSHIP CONCEPTUAL MODELING Department of Computer Science & Engineering Arizona State University.
1 CS 430 Database Theory Winter 2005 Lecture 7: Designing a Database Logical Level.
LECTURE 1: Entity Relationship MODEL. Think before doing it! Like most of the software projects, you need to think before you do something. Before developing.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Mapping Constraints Keys.
Mapping ER to Relational Model Each strong entity set becomes a table. Each weak entity set also becomes a table by adding primary key of owner entity.
1 The Relational Data Model David J. Stucki. Relational Model Concepts 2 Fundamental concept: the relation  The Relational Model represents an entire.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
April 20022/CS/3X1 Database Design Design method John Wordsworth Department of Computer Science The University of Reading Room.
COP Introduction to Database Structures
Data Modeling Using the ERD
Constraints AND Examples
ERD’s REVIEW DBS201.
Chapter 3 The Relational Model.
Database Modeling using Entity Relationship Model (E-R Model)
Constraints AND Examples
Chapter 3 The Relational Model
Presentation transcript:

db design / ER Modeling B Database Systems Database Design Wilhelm Steinbuss Room G2.04, ext 4052

db design / ER Modeling Database Design Conceptual Modeling (Entity Relationship Approach) –What are the entities and relationships in the enterprise? –What information (attributes) about these entities and relationships should we store in the database? Normalization (1NF,2NF,3NF,BCNF,4NF,5NF) check model for redundancies and related anomalies –Reducing the need for additional integrity constraints –The rules behind the common sense in finding the ‚best‘ assignment for the attributes Physical design (Implementation, Tuning) map the model to the features of the target dbms

db design / ER Modeling Introduction 1.1 Conceptual Design Why ER-Modeling? –a picture tells you more than 1000 words (ex.1) –hints for additional integrity constraints (ex.2) –independent of technical restrictions (ex.3) More transferable (between releases, vendors) More stable („essential model“)

db design / ER Modeling Normalization Why normalization ? Suppose table project is a result of conceptional design: employeenumber (A) departmentnumber (B) managernumber (C) projectnumber (unique within manager) (D) departmentname (E) percentage_project_time (F) (allocated by the specified manager) Functional dependency (e.g. B E) implies an integrity constraint !

db design / ER Modeling Integrity constraints Not null Primary key Unique constraint Foreign key Check constraint Trigger Example 5 emp table: Empno number(4) Enamevarchar(10) Jobvarchar(9) Mgrnumber(4) Hiredatedate Salnumber(7,2) Commnumber(7,2) Deptnonumber(2) _idvarchar(30)

db design / ER Modeling Physical design Example 3: a Person owns at least one address an address is assigned to at least one person Possible Implementations: –First address within person table –DEFERRABLE constraints –Nested table

db design / ER Modeling Entity Relationship Notation An information system contains all facts which are important for the enterprise Within a fact you assign attribute values to something Example: the person Linda McGee has the birthday The saving account 123 has the interest rate 3%

db design / ER Modeling Entity Everything you want to talk about (assign attribute values) is called an entity Examples: The person Linda McGee The saving account 123

db design / ER Modeling Entity Type An entity type is a set of entities with the same semantic meaning An entity type is called fundamental if in the fact is only one object involved; it is graphically represented by a rectangle Example:

db design / ER Modeling associative entity type An entity type is called associative if the fact is a statement about more than one objects; it is graphically represented by a rectangle and arrows pointing to the entity types which are referenced Example:

db design / ER Modeling Example: loan account A person could have more than one account An account is owned by at least one person For each account there have to be at least one security (the security owner must not be the owner of the account)

db design / ER Modeling Solution

db design / ER Modeling Solution (cont.) Additional requests: A security could hedge more than one account A person could own more than one security A security must be assigned to at least one person

db design / ER Modeling Exercise: Doctor’s practice A doctor’s practice want to store information about their patients over time ( e.g. blood sugar, blood pressure, cholesterol) A patient can have different blood values A blood value for a patient could be recorded more than once over time A patient could be treated with drugs. The time period and the dose of a drug should be recorded for a patient Within different time periods there are different dose rates (and a drug changes) possible. Add additional requirements if necessary.

db design / ER Modeling Attribute type Every attribute type has assigned a type (abstract data type) A type is a set of values together with a set of operations (not very good supported in dbms today; what a sense does it make to multiply two employeenumbers?) (the domain construct is usually only a restriction of a basic type)