Requirement Analysis & Conceptual Database Design
|
|
- Allan Reed
- 6 years ago
- Views:
Transcription
1 Requirement Analysis & Conceptual Database Design Problem analysis Entity Relationship notation Integrity constraints Generalization Introduction: Lifecycle Requirement analysis Conceptual Design Logical Schema Design Physical Schema Design Administration -> Text -> ER-Model -> Database schema -> Access paths Name DID Name VName VName SID Studentin Dozentin (1,*) (1,*) anmelden Name halten (0,*) KID Kurs Dauer (0,*) (0,*) Vorgänger Nachfolger voraussetzen CREATE TABLE Studentin (SID INTEGER PRIMARY KEY, VName CHAR(20) Name CHAR(30) NOT NULL, CREATE TABLE Kurs Char(40)); (KID CHAR(10) PRIMARY KEY, Name CHAR(40) NOT NULL, Dauer INTEGER); CREATE TABLE Anmelden (SID INTEGER PRIMARY KEY FOREIGN KEY REFERENCES Studentin (SID), KID INTEGER PRIMARY KEY FOREIGN KEY REFERENCES Studentin (KID)); 2.2 1
2 Introduction: Database Design Terminology Different from Software Engineering! Database Design - process of defining the structure of a database - layers of abstraction: Conceptual, logical, physical level Includes "Analysis" and "Design" from SE Database Requirements Conceptual modeling Logical modeling Physical modeling Software Engineering Requirements Analysis Design 2.3 Requirement Analysis Customer communication! Identify essential "real world" information Remove redundant, unimportant details Clarify unclear natural language statements Fill remaining gaps in discussions Distinguish data and operations Requirement analysis & Conceptual Design aims at focusing thoughts and discussions! 2.4 2
3 Requirement Analysis: Example I m the owner of a medium size veo store. We have over veo tapes that we need to keep track of. Since a few weeks, we also have DVDs. Each of our veo tapes has a tape number. For each movie, we need to know its title and category (e.g. comedy, suspense, drama, action, or SciFi), director and year. Yes, we do have multiple copies of many of our movies. We give each movie a specific, and then track which movie a tape contains. A tape may be either Beta or VHS Format. We always have at least one tape for each movie we track, and each tape is always a copy of a single, specific movie. Our tapes are adapted to the movie lengths, so we don t have any movies which require multiple tapes. The movies are stored on shelf according to their category sorted by movie title. We are frequently asked for movies starring specific actors John Wayne and Katherine Hepburn are always popular. So we d like to keep track of the star actors appearing in each movie Conceptual Design: Example... Not all of our movies have star actors. Customers like to know each actor s real birth name and age. We track only actors who appear in the movies in our inventory. We have lots of customers. We only rent veos to people who have joined our veo club. To belong to our club, they must have good credit. For each club member, we d like to keep their first and last name, current phone number, and current address. And, of course each club member has a membership number. Then we need to keep track of what veo tapes each customer currently has checked out. A customer may check out multiple veo tapes at any given time. Rentals are for one or more days, each movie with an indivual price per day. Furthermore we additionally charge 1 $ per beta format tape, 2 $ for a DVD and another $ for movies longer than 2 hours. Maximum rental time is 4 weeks. The customer gets a bill with movie titles, indivual prices and total amount, when he /she returns movies." 2.6 3
4 Requirement Analysis: Example Note: what is important depends on the applications Essential information - customers, tapes, movies,... - movies have many copies - tape (or DVD) contains exactly one movie - customers have customer entification () - four weeks maximal rental time - Redundant, unimportant details - "...DVDs since a few weeks - "... John Wayne.. - Names of the categories (but categories are important!) - Tapes on shelf (since we don't design a tape robot) Requirement Analysis: Example Clarify unclear statements - Veo club: admission / annual fee? - Charge per tape: is price for one day the minimum? -... Fill gaps - Any discounts? -... Distinguish data/operations - Processing a bill - Becoming a member of the club
5 Conceptual Design: Modeling primitives Entity - something which exists - Examples: tape, movie Attribute - property of an entity - Examples: tape has, movie has title Relationship: - connects two or more entities - Examples: tape contains a movie. Attributes have values Tape - Example: John Wayne is starring - Not modeled! Movie Tape Important terms Tape Movie title contain Movie title 2.9 Conceptual Design: Structuring the problem Modeling / Conceptual Design - typically: Entity-Relationship-Model, data-oriented introduced by P.P. Chen (Peter P. Chen: The Entity-Relationship Model - Toward a Unified View of Data. TODS 1(1): 9-36, 1976) Title LID hours - sometimes: UML (problematic!) Student Matr-Nr:Number Name: String FName: String String Student attend attend Name FName Matr-Nr LID: Number Title: String hours: Number
6 Conceptual Design: E-R notation Entities & Attributes: - Entities have entifying (or key) attributes or sets of attributes Tape key Entity attribute attribute attribute Movie title director category These attributes together entify a movie 2.11 Conceptual Design: E-R notation Relationships attribute attribute Entity_1 relationship Entity_2 - Always have a name - Do not have a key! - Not always reflected by the relationship name see example: "rents" is equivalent to "is-rented_by" Customer rents Tape attribute attribute
7 Conceptual Design: Example [ ] We have [ ] veo tapes that we need to keep track of. Since a few weeks, we also have DVDs. Each of our veo tapes has a tape number. For each movie, we need to know its title and category, director and year. We do have multiple copies of many of our movies. We give each movie a specific, and then track which movie a tape contains. A tape may be either Beta or VHS Format. We always have at least one tape for each movie we track, and each tape is always a copy of a single, specific movie. Our tapes are adapted to the movie lengths, so we don t have any movies which require multiple tapes. The movies are stored on shelf according to their category sorted by movie title. We are frequently asked for movies starring specific actors. [ ] Customers like to know each actor s real birth name and age. We track only actors who appear in the movies in our inventory. [ ] Rentals are for one or more days, each movie with an indivual price per day. Furthermore we additionally charge 1 $ per beta format tape, 2 $ for a DVD and another $ for movies longer than 2 hours. [abbreviated] 2.13 Conceptual Design: Example (without customers) Tape belong_to Format name charge category year title Movie play Actor stage_name real_name director Price_per_day length birthday
8 Conceptual Design: E-R notation Multiple relationships attend Student Recursive relationships predecessor successor require role name parent Person have child 2.15 Conceptual Design: E-R notation Relationships with attributes rating - Different semantics in separate entity: belong_to _date rating r r
9 Conceptual Design: Integrity constraints Integrity constraints (=Invariants) Database must always meet these invariants Important concept Explicit state restrictions from requirements Examples: - "There is always at least one tape for each movie, and each tape is always a copy of a single, specific movie - "Not all of our movies have star actors" Implicit invariants common Examples: - Tape cannot be loaned by more than one customer a time - Actor may be starring in more than one movie 2.17 Conceptual Design: Integrity constraints Attribute restrictions Constraints: Cardinality restrictions Attribute restrictions - Attribute contain at most one value: unstructured attribute restriction of E-RM - Key attributes are unique - Attribute must / may have a value e.g., movie must have title, director is not necessarily known - Value may be restricted e.g., movies are made after 1900 : movie.year > Special restrictions not in E-R model!
10 Conceptual Design: Integrity constraints Cardinality restrictions - # entities-instances in relationship (UML: multiplicity) Examples: one movie on a tape, tape loaned by at most one customer at a time, #rented tapes per customer 0 one licence per driver 1:1 Person own drivers license one movie on a tape 1:N Movie Movie play Tape several actors in many movies N:M Actor 2.19 Conceptual Design: Cardinalities Simple Notation k1 k2 E1 R E2 N 1 Tape rent Customer N tapes are rented by 1 customer Min-Max Notation: (min1,max1) E1 R E2 (0,1) (0,*) Tape rent Customer Each tape is rented by 0-1 customers Each customer has rented 0-N tapes (min2,max2)
11 Conceptual Design: Cardinalities 1:1 relationship 1:N relationship N:M relationship Do not mix notations! (min,max) easier to implement person have driverslicence (0,1) Movie Tape (1,*) r (0,*) User_account has message (0,*) (1,*) 2.21 Conceptual Design: Semantics N:M, (min,max) Let R E1 x E2 be a relationship between entity sets E1 and E2 R is 1:N R is a partial function R: E2 E1 for all extensions of R e2 E2: {e1 e1 E1 (e1,e2) R } 1 R is 1:1 E2 E1 is a injective partial function R is M:N R is a relation, but not a function (R,E1) has (min1, max1) for all extensions of R and for all x E1 min1 {y y E2 (x,y) R } max1 (R,E2) has (min2, max2) for all extensions of R and for all y E2 min2 {x x E1 (x,y) R } max2 Important concept
12 Conceptual Design: Example (without customers) title Tape (1,*) belong_to category year Movie (0,*) play (0,*) (1,*) Format Actor name charge stage_name real_name director Price_per_day length birthday 2.23 Conceptual Design: notational overview E-RM (min,max) E-RM 1:N UML mandatory/ multiple (1,*) N or M 1..* k..j k optional/ multiple (0,*) N or M 0..* * 0.. k optional/ single (0,1) mandatory/ single k,j,n,m are natural numbers More notations in use, e.g., oracle-special notation
13 Conceptual Design: Weak entities Existentially dependent entities Not globally entifiable Example: Notation: (1,*) Building has Room (min1,max1) (min2, max2) E1 R E2 min2 = 1 : at least one e1 for each e2, otherwise e2 could not be entified partial key if max1 > Conceptual Design: Weak entities Example: Movies and their scenes Example: Order and Delivery O Movie (1,*) Order contains Delivery (0,*) has (1,*) has D Scene Item I
14 Conceptual Design: Weak entities Modeling decision: (0,*) employee has child e MID or c (0,*) employee has child c Advantages and disadvantages? 2.27 Conceptual Design: Temporal data 1. Condition: tape only rented by one customer at the same time: c 2. Condition: tape rented by many customers one after the other customer c custmer rent (0,*) (0,*) customer rent (0,*) (0,1) veotape from has (0,*) until veotape is_in rental veotape (0,*) from until v v
15 Conceptual Design: Example year title category director charge Format Price_per_day name (0,*) (1,*) Movie length belong_to (0,*) play Tape First_name (0,*) Address Last_name (1,*) is_in Telephone Actor Mem_no from Rental stage_name birthday until have (0,*) Customer real_name 2.29 Conceptual Design: n-ary relationships Example: - r recommends textbook for lecture (0,*) (1,*) r recommend Textbook Cardinalities: (1,*) - A particular lecturer recommends zero or more "(textbook,lecture) pairs" - For each lecture at least one textbook is recommended by lecturers - here, (min,max)-constraints not very expressive
16 Conceptual Design: n-ary relationships 1:N notation in n-ary relationships - Remember: R is 1:N R is function R:E2 E1 - Generalization: R: E 1 x x E j-1 x E j+1 x x E n E j E1 1 N R 1 r recommend N Textbook recommend: Textbook x r recommend: Textbook x r M E Conceptual Design: n-ary relationships N-ary relationships expressed by binaries 1. Connect pairs of entities r 2. New central entity, binary relationships to old ones r Textbook plan Textbook - Less constraints expressible!
17 Conceptual Design: Generalization Conser lecturing students: - similar objects in different entities - Redundancy errors! FName Name FName Name Matr_no Contract Student r attend Generalization (specialization) helps l LID title hours 2.33 Conceptual Design: Generalization attend Person is-a is-a Student r Matr_no hours title LID FName Name p Contract DB Interpretation of Generalization differs from OO! instances of Student and r also instances of Person Student Person, r Person
18 Conceptual Design: Generalization OO-interpretation: - Instances of A, B and C different but share some attributes DB interpretation: - Instances of B and C also instances of A: B A and C A - Key-inheritance - "is-a" different from ordinary relationships Special cases: is-a - Disjoint specialization: Instances of B and C are disjoint - Complete specialization: A = B C, no extra tupel in A B A is-a C 2.35 Conceptual Design: Short summary E-R Modeling - Standard semi-formal language for conceptual modeling - Different notations: we use E-R and (min,max) Important terms - Entity (type, set): set of objects with the same attributes - Attribute: property of an entity, at most one value per attribute. - Relationship (type): association between entity types - Role: name of one se of relationship - Cardinality (multiplicity): number of entity objects that participate in relationship - Weak entity: existentially dependent entity - Generalization
2 Conceptual Database Design
2 Conceptual Database Design 2.1.1 Overview 2.1.2 Requirement Analysis 2.2.1 Basic Modeling Primitives 2.2.2 Modeling Languages: UML and Entity-Relationship Model (ERM) 2.2.3 Conceptual DB design: basics
More informationLogical Schema Design Logical Schema Design: The Relational Data Model
Logical Schema Design Logical Schema Design: The Relational Data Model Basics of the Relational Model From Conceptual to Logical Schema Select data model - Hierarchical data model: hierarchies of record
More informationCardinality constraints,n:m notation
2 Conceptual Database Design 2.3 Integrity Constraints 2.3. Constraint types 2.3.2 Cardinality constraints 2.4 Extended ER Modeling 2.4. Inheritance / Generalization 2.4.2 Modeling historical data 2.4.3
More informationDBS 2006: 1 st week. DBS 2006: Plan. DB Life-Cycle: Requirement analysis. Data modelling: Conceptual Design. Logical Schema Design
DBS 006: Plan DBS 006: 1 st week DB Life-Cycle: Data modelling: 1 systematic design of DB 3-3 weeks Physical Schema Design Database usage: access to the stored data using SQL interactively or via application
More informationIntro to DB CHAPTER 6
Intro to DB CHAPTER 6 DATABASE DESIGN &THEER E-R MODEL Chapter 6. Entity Relationship Model Design Process Modeling Constraints E-R Diagram Design Issues Weak Entity Sets Extended E-R Features Design of
More informationReview The Big Picture
CS445 - Introduction to Database Management Systems Fall Semester 2015 LECTURE 6 The Entity-Relationship Model Introduction TEXTBOOK REFERENCE: CHAPTERS 2,3 R&G 1 Review The Big Picture Data Modeling Relational
More informationUsing High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys
Chapter 7: Data Modeling Using the Entity- Relationship (ER) Model Using High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys
More informationA l Ain University Of Science and Technology
A l Ain University Of Science and Technology 4 Handout(4) Database Management Principles and Applications The Entity Relationship (ER) Model http://alainauh.webs.com/ http://www.comp.nus.edu.sg/~lingt
More information2004 John Mylopoulos. The Entity-Relationship Model John Mylopoulos. The Entity-Relationship Model John Mylopoulos
XVI. The Entity-Relationship Model The Entity Relationship Model The Entity-Relationship Model Entities, Relationships and Attributes Cardinalities, Identifiers and Generalization Documentation of E-R
More informationHigh Level Database Models
ICS 321 Fall 2011 High Level Database Models Asst. Prof. Lipyeow Lim Information & Computer Science Department University of Hawaii at Manoa 9/21/2011 Lipyeow Lim -- University of Hawaii at Manoa 1 Database
More informationConceptual Data Models for Database Design
Conceptual Data Models for Database Design Entity Relationship (ER) Model The most popular high-level conceptual data model is the ER model. It is frequently used for the conceptual design of database
More informationXV. The Entity-Relationship Model
XV. The Entity-Relationship Model The Entity-Relationship Model Entities, Relationships and Attributes Cardinalities, Identifiers and Generalization Documentation of E-R Diagrams and Business Rules Acknowledgment:
More informationDATABASE DESIGN I - 1DL300
DATABASE DESIGN I - 1DL300 Fall 2009 An introductury course on database systems http://user.it.uu.se/~udbl/dbt1-ht2009/ alt. http://www.it.uu.se/edu/course/homepage/dbastekn/ht09/ Kjell Orsborn Uppsala
More informationThe Entity-Relationship Model (ER Model) - Part 2
Lecture 4 The Entity-Relationship Model (ER Model) - Part 2 By Michael Hahsler Based on slides for CS145 Introduction to Databases (Stanford) Lecture 4 > Section 2 What you will learn about in this section
More informationChapter 2: Entity-Relationship Model
Chapter 2: Entity-Relationship Model! Entity Sets! Relationship Sets! Design Issues! Mapping Constraints! Keys! E-R Diagram! Extended E-R Features! Design of an E-R Database Schema! Reduction of an E-R
More informationThe Entity/Relationship (E/R) Model & DB Design. csc343, Introduction to Databases Renée J. Miller and Fatemeh Nargesian and Sina Meraji Winter 2018
The Entity/Relationship (E/R) Model & DB Design csc343, Introduction to Databases Renée J. Miller and Fatemeh Nargesian and Sina Meraji Winter 2018 Overview Using the Entity/Relationship (ER) Model to
More informationDefinition. 02. Data Modeling. Example ABC Company Database. Data Modeling Importance
0. Data Modeling Definition Data Model = a collection of concepts that can be used to describe the structure of a database Structure = data types, relationships, constraints that should hold for that data
More informationChapter 2 Entity-Relationship Data Modeling: Tools and Techniques. Fundamentals, Design, and Implementation, 9/e
Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques Fundamentals, Design, and Implementation, 9/e Three Schema Model ANSI/SPARC introduced the three schema model in 1975 It provides a framework
More informationOverview of Database Design Process Example Database Application (COMPANY) ER Model Concepts
Chapter Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes Entity Types, Value Sets, and Key Attributes Relationships and Relationship
More informationHigh-Level Database Models (ii)
ICS 321 Spring 2011 High-Level Database Models (ii) Asst. Prof. Lipyeow Lim Information & Computer Science Department University of Hawaii at Manoa 1 Logical DB Design: ER to Relational Entity sets to
More informationLECTURE 3: ENTITY-RELATIONSHIP MODELING
LECTURE 3: ENTITY-RELATIONSHIP MODELING Ref. Chapter11 + Appendix F from Database Systems: A Practical Approach to Design, Implementation and Management. Thomas Connolly, Carolyn Begg. 1 IS220 : D a t
More informationChapter 2 Entity-Relationship Data Modeling: Tools and Techniques. Fundamentals, Design, and Implementation, 9/e
Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques Fundamentals, Design, and Implementation, 9/e Three Schema Model ANSI/SPARC introduced the three schema model in 1975 It provides a framework
More informationObjectives of logical design... Transforming the ERD diagram into relations. Relational database components. Mapping a composite attribute
Logical database design and the relational model Objectives of logical design... Translate the conceptual design into a logical database design that can be implemented on a chosen DBMS Input: conceptual
More information0. Database Systems 1.1 Introduction to DBMS Information is one of the most valuable resources in this information age! How do we effectively and efficiently manage this information? - How does Wal-Mart
More informationConceptual Design with ER Model
Conceptual Design with ER Model Lecture #2 1/24/2012 Jeff Ballard CS564, Spring 2014, Database Management Systems 1 See the Moodle page Due February 7 Groups of 2-3 people Pick a team name Homework 1 is
More informationConceptual Modeling in ER and UML
Courses B0B36DBS, A7B36DBS: Database Systems Practical Classes 01 and 02: Conceptual Modeling in ER and UML Martin Svoboda 21. and 28. 2. 2017 Faculty of Electrical Engineering, Czech Technical University
More informationThe DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.
Managing Data Data storage tool must provide the following features: Data definition (data structuring) Data entry (to add new data) Data editing (to change existing data) Querying (a means of extracting
More informationChapter 6: Entity-Relationship Model. The Next Step: Designing DB Schema. Identifying Entities and their Attributes. The E-R Model.
Chapter 6: Entity-Relationship Model The Next Step: Designing DB Schema Our Story So Far: Relational Tables Databases are structured collections of organized data The Relational model is the most common
More informationA l Ain University Of Science and Technology
A l Ain University Of Science and Technology 4 Handout(4) Database Management Principles and Applications The Entity Relationship (ER) Model http://alainauh.webs.com/ 1 In this chapter, you will learn:
More informationER Modeling ER Diagram ID-Dependent and Weak Entities Pg 1
ER Modeling ER Diagram ID-Dependent and Weak Entities Pg 1 ER Diagram ID-Dependent and Weak Entities Ray Lockwood Points: An ID-dependent entity is an entity whose identifier (key) includes the identifier
More informationDatabase Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams
Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 7 Data Modeling with Entity Relationship Diagrams Objectives In this chapter, students will learn: The
More informationDATABASE DESIGN I - 1DL300
DATABASE DESIGN I - 1DL300 Fall 2010 An introductory course on database systems http://www.it.uu.se/edu/course/homepage/dbastekn/ht10/ Manivasakan Sabesan Uppsala Database Laboratory Department of Information
More informationConceptual Data Modeling
Conceptual Data odeling A data model is a way to describe the structure of the data. In models that are implemented it includes a set of operations that manipulate the data. A Data odel is a combination
More informationThe Next Step: Designing DB Schema. Chapter 6: Entity-Relationship Model. The E-R Model. Identifying Entities and their Attributes.
Chapter 6: Entity-Relationship Model Our Story So Far: Relational Tables Databases are structured collections of organized data The Relational model is the most common data organization model The Relational
More information3. Schema Design: Logical Design using the Relational Data Model
3. Schema Design: Logical Design using the Relational Data Model 3.1 Logical Schema Design 3.1.1 The Relational Data Model Basics 3.1.2 Keys, candidate keys and more 3.2 From Conceptual to Logical Schema:
More information1/24/2012. Chapter 7 Outline. Chapter 7 Outline (cont d.) CS 440: Database Management Systems
CS 440: Database Management Systems Chapter 7 Outline Using High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys Relationship
More informationKDI EER: The Extended ER Model
KDI EER: The Extended ER Model Fausto Giunchiglia and Mattia Fumagallli University of Trento 0/61 Extended Entity Relationship Model The Extended Entity-Relationship (EER) model is a conceptual (or semantic)
More informationChapter 2. Database Design. Database Systems p. 25/540
Chapter 2 Database Design Database Systems p. 25/540 Database Design Phases requirements analysis specification conceptual design conceptual schema logical design logical schema physical design physical
More informationOVERVIEW OF DATABASE DEVELOPMENT
DATABASE SYSTEMS I WEEK 2: THE ENTITY-RELATIONSHIP MODEL OVERVIEW OF DATABASE DEVELOPMENT Requirements Analysis / Ideas High-Level Database Design Conceptual Database Design / Relational Database Schema
More informationChapter Outline. Note 1. Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts
Chapter Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes Entity Types, Value Sets, and Key Attributes Relationships and Relationship
More informationFull file at Chapter 2: Foundation Concepts
Chapter 2: Foundation Concepts TRUE/FALSE 1. The input source for the conceptual modeling phase is the business rules culled out from the requirements specification supplied by the user community. T PTS:
More informationChapter 9: Relational DB Design byer/eer to Relational Mapping Relational Database Design Using ER-to- Relational Mapping Mapping EER Model
Chapter 9: Relational DB Design byer/eer to Relational Mapping Relational Database Design Using ER-to- Relational Mapping Mapping EER Model Constructs to Relations Relational Database Design by ER- and
More informationConceptual Database Design. COSC 304 Introduction to Database Systems. Entity-Relationship Modeling. Entity-Relationship Modeling
COSC 304 Introduction to Database Systems Entity-Relationship Modeling Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Conceptual Database Design Conceptual database design
More informationDavid M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Chapter Five: Data Modeling with the Entity-Relationship Model Chapter Objectives To understand the two-phase
More informationChapter 7: Entity-Relationship Model
Chapter 7: Entity-Relationship Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 7: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram
More informationElements of the E-R Model
Chapter 3: The Entity Relationship Model Agenda Basic Concepts of the E-R model (Entities, Attributes, Relationships) Basic Notations of the E-R model ER Model 1 Elements of the E-R Model E-R model was
More informationData Modeling Using the Entity-Relationship (ER) Model
CHAPTER 3 Data Modeling Using the Entity-Relationship (ER) Model Copyright 2017 Ramez Elmasri and Shamkant B. Navathe Slide 1-1 Chapter Outline Overview of Database Design Process Example Database Application
More informationChapter 7: Entity-Relationship Model
Chapter 7: Entity-Relationship Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 7: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram
More informationChapter 7: Entity-Relationship Model
Chapter 7: Entity-Relationship Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 7: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram
More informationDATA MODELING USING THE ENTITY-RELATIONSHIP MODEL. 1 Powered by POeT Solvers Limited
DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL 1 www.pmtutor.org Powered by POeT Solvers Limited 2 www.pmtutor.org Powered by POeT Solvers Limited Entity-Relationship (ER) Model The ER model is a high-level
More informationCOSC 304 Introduction to Database Systems. Entity-Relationship Modeling
COSC 304 Introduction to Database Systems Entity-Relationship Modeling Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Conceptual Database Design Conceptual database design
More information4 Schema Definition with SQL / DDL (II)
4 Schema Definition with SQL / DDL (II) 4.3 SQL/DDL Constraints 4.3.1 Attribute and simple table constraints 4.3.2 Enforcing cardinality constraints and foreign keys 4.3.3 Deferred constraints 4.3.4 Assertions
More informationLecture3: Data Modeling Using the Entity-Relationship Model.
College of Computer and Information Sciences - Information Systems Dept. Lecture3: Data Modeling Using the Entity-Relationship Model. Ref. Chapter12 Prepared by L. Nouf Almujally & Aisha AlArfaj Rev. by
More informationDATABASDESIGN FÖR INGENJÖRER F
1 DATABASDESIGN FÖR INGENJÖRER - 1056F Sommar 2005 En introduktionskurs i databassystem http://user.it.uu.se/~udbl/dbt-sommar05/ alt. http://www.it.uu.se/edu/course/homepage/dbdesign/st05/ Kjell Orsborn
More information2. E/R Design Considerations
2. E/R Design Considerations 32 What you will learn in this section Relationships cont d: multiplicity, multi-way Design considerations Conversion to SQL 33 Multiplicity of E/R Relationships Multiplicity
More informationER DIAGRAM ER) diagram, a graphical representation of entities and their relationships to each other, typically used in computing in regard to the
ER DIAGRAM ER) diagram, a graphical representation of entities and their relationships to each other, typically used in computing in regard to the organization of data within databases or information systems.
More informationDatabase Systems ER Model. A.R. Hurson 323 CS Building
ER Model A.R. Hurson 323 CS Building Database Design Data model is a group of concepts that helps to specify the structure of a database and a set of associated operations allowing data retrieval and data
More informationRoadmap of This Lecture. Weak Entity Sets Extended E-R Features Reduction to Relation Schemas Database Design UML*
E-R Model (II) 1 Roadmap of This Lecture Weak Entity Sets Extended E-R Features Reduction to Relation Schemas Database Design UML* 2 Weak Entity Sets An entity set that does not have a primary key is referred
More informationMTAT Introduction to Databases
MTAT.03.105 Introduction to Databases Lecture #4 Entity-Relationship Modelling Ljubov Jaanuska (ljubov.jaanuska@ut.ee) Lecture 3. Summary So far we have been dealing with a relational database (PCA.db)
More informationMore on the Chen Notation
More on the Chen Notation Reference: http://www.vertabelo.com/blog/technical-articles/chen-erd-notation Peter Chen, who developed entity-relationship modeling and published his work in 1976, was one of
More informationCSE 880:Database Systems. ER Model and Relation Schemas
CSE 880:Database Systems ER Model and Relation Schemas 1 Major Steps for Database Design and Implementation 1. Requirements Collection and Analysis: Produces database requirements such as types of data,
More informationCS 405G: Introduction to Database Systems
CS 405G: Introduction to Database Systems Entity Relationship Model Jinze Liu 9/11/2014 1 CS685 : Special The UNIVERSITY Topics in Data of Mining, KENTUCKY UKY Review A database is a large collection of
More informationChapter 2 Conceptual Modeling. Objectives
Chapter 2 Conceptual Modeling Basic Entity Relationship Diagrams 1 Objectives Definition of terms Importance of data modeling Write good names and definitions for entities, relationships, and attributes
More informationConceptual Data Modeling Using E-R Models. PM Jat
Conceptual Data Modeling Using E-R Models PM Jat pm_jat@daiict.ac.in Data Model Data modeling is the most important task in database development completeness correctness performance of database depends
More informationDatabase Systems. Overview - important points. Lecture 5. Some introductory information ERD diagrams Normalization Other stuff 08/03/2015
Lecture 5 Database Systems Instructor: M.Imran Khalil Imrankhalil3@gmail.com Resource:Imrankhalil3.wordpress.com University of Sargodha Canal Campus Lahore Overview - important points Some introductory
More informationSQL DDL. CS3 Database Systems Weeks 4-5 SQL DDL Database design. Key Constraints. Inclusion Constraints
SQL DDL CS3 Database Systems Weeks 4-5 SQL DDL Database design In its simplest use, SQL s Data Definition Language (DDL) provides a name and a type for each column of a table. CREATE TABLE Hikers ( HId
More informationCopyright 2016 Ramez Elmasr and Shamkant B. Navathei
CHAPTER 3 Data Modeling Using the Entity-Relationship (ER) Model Slide 1-2 Chapter Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes
More informationRepresent entities and relations with diagrams
LEARNING OBJECTIVES Define data modeling terms Describe E-R Model Identify entities and relations Represent entities and relations with diagrams WHAT IS DATA MODELING? A data model is a collection of concepts
More informationER modeling. Lecture 4
ER modeling Lecture 4 1 Copyright 2007 STI - INNSBRUCK Today s lecture ER modeling Slides based on Introduction to Entity-relationship modeling at http://www.inf.unibz.it/~franconi/teaching/2000/ct481/er-modelling/
More informationChapter 2: ER-Diagrams. Content: Learn how to draw ER diagrams Useful to model a database
Chapter 2: ER-Diagrams Content: Learn how to draw ER diagrams Useful to model a database 1 Database Design DBS can take care automatically of many things but the user has to specify Requirements of the
More informationInformatics 1: Data & Analysis
Informatics 1: Data & Analysis Lecture 3: The Relational Model Ian Stark School of Informatics The University of Edinburgh Tuesday 24 January 2017 Semester 2 Week 2 https://blog.inf.ed.ac.uk/da17 Lecture
More informationAgent 7 which languages? skills?
Agent 7 which languages? skills? select * from languagerel where agent_id = 7 lang_id agent_id 3 7 14 7 19 7 20 7 agent 7 speaks 4 languages select * from skillrel where agent_id = 7 skill_id agent_id
More informationCONCEPTUAL DESIGN: ER TO RELATIONAL TO SQL
RELATIONAL MODEL TO Data Model CONCEPTUAL DESIGN: ER TO RELATIONAL TO How to represent Entity sets, Relationship sets, Attributes, Key and participation constraints, Subclasses, Weak entity sets...? 2
More informationChapter 6: Entity-Relationship Model
Chapter 6: Entity-Relationship Model Database System Concepts, 5th Ed. See www.db-book.com for conditions on re-use Chapter 6: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram
More informationData Modeling Using the Entity-Relationship Model
3 Data Modeling Using the Entity-Relationship Model Conceptual modeling is a very important phase in designing a successful database application. Generally, the term database application refers to a particular
More informationCSC 261/461 Database Systems Lecture 8. Spring 2018
CSC 261/461 Database Systems Lecture 8 Spring 2018 Announcement Quiz No New Problem Set Study Chapter 5, 6, and 7 Go through the problem set Announcement Project 2 Part 1 Already out. Workshop covered
More informationOverview of Database Design Process. Data Modeling Using the Entity- Relationship (ER) Model. Two main activities:
1 / 14 Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes Entity Types, Value Sets, and Key Attributes Relationships and Relationship Types
More informationDatabase Management
204320 - Database Management Chapter 9 Relational Database Design by ER and EERto-Relational Mapping Adapted for 204320 by Areerat Trongratsameethong Copyright 2011 Pearson Education, Inc. Publishing as
More informationEntity Relationship Diagram (ERD): Basics
Entity Relationship Diagram (ERD): Basics CIS 3730 Designing and Managing Data J.G. Zheng Fall 2010 Overview: 3 Level Database Design Creating an Entity Relationship Diagram (ERD) and associated data dictionary
More informationConceptual Database Modeling
Course A7B36DBS: Database Systems Lecture 01: Conceptual Database Modeling Martin Svoboda Irena Holubová Tomáš Skopal Faculty of Electrical Engineering, Czech Technical University in Prague Course Plan
More informationOverview of db design Requirement analysis Data to be stored Applications to be built Operations (most frequent) subject to performance requirement
ITCS 3160 Data Base Design and Implementation Jing Yang 2010 Fall Class 12: Data Modeling Using the Entity-Relationship (ER) Model Overview of db design Requirement analysis Data to be stored Applications
More informationChapter 3 Data Modeling Using the Entity- Relationship (ER) Model
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Elmasri/Navathe, Fundamentals of Database Systems, Fourth Edition Chapter 3-3 Chapter Outline Example Database Application (COMPANY) ER
More informationER to Relational Mapping
ER to Relational Mapping 1 / 19 ER to Relational Mapping Step 1: Strong Entities Step 2: Weak Entities Step 3: Binary 1:1 Relationships Step 4: Binary 1:N Relationships Step 5: Binary M:N Relationships
More informationMIS Database Systems Entity-Relationship Model.
MIS 335 - Database Systems Entity-Relationship Model http://www.mis.boun.edu.tr/durahim/ Ahmet Onur Durahim Learning Objectives Database Design Main concepts in the ER model? ER Diagrams Database Design
More informationEECS-3421a: Test #1 Design
2016 October 12 EECS-3421a: Test #1 1 of 14 EECS-3421a: Test #1 Design Electrical Engineering & Computer Science Lassonde School of Engineering York University Family Name: Given Name: Student#: EECS Account:
More informationMajor components of ER diagram Practices
Major components of ER diagram Practices 1 1976 proposed by Peter Chen ER diagram is widely used in database design Represent conceptual level of a database system Describe things and their relationships
More informationThe Entity-Relationship Model. Steps in Database Design
The Entity-Relationship Model Steps in Database Design 1) Requirement Analysis Identify the data that needs to be stored data requirements Identify the operations that need to be executed on the data functional
More informationDATABASTEKNIK - 1DL116
1 DATABASTEKNIK - 1DL116 Fall 2003 An introductury course on database systems http://user.it.uu.se/~udbl/dbt-ht2003/ Kjell Orsborn Uppsala Database Laboratory Department of Information Technology, Uppsala
More informationNon-overlappingoverlapping. Final outcome of the worked example On pages R&C pages R&C page 157 Fig 3.52
Objectives Computer Science 202 Database Systems: Entity Relation Modelling To learn what a conceptual model is and what its purpose is. To learn the difference between internal models and external models.
More informationLet s briefly review important EER inheritance concepts
Let s briefly review important EER inheritance concepts 1 is-a relationship Copyright (c) 2011 Pearson Education 2 Basic Constraints Partial / Disjoint: Single line / d in circle Each entity can be an
More informationDatabase Management System 6 ER Modeling...
Database Management System 6 School of Computer Engineering, KIIT University 6.1 A key allows us to identify a set of attributes that suffice to distinguish entities from each other A key is a property
More informationIS 263 Database Concepts
IS 263 Database Concepts Lecture 1: Database Design Instructor: Henry Kalisti 1 Department of Computer Science and Engineering The Entity-Relationship Model? 2 Introduction to Data Modeling Semantic data
More informationL12: ER modeling 5. CS3200 Database design (sp18 s2) 2/22/2018
L12: ER modeling 5 CS3200 Database design (sp18 s2) https://course.ccs.neu.edu/cs3200sp18s2/ 2/22/2018 200 Announcements! Keep bringing your name plates J Exam 1 discussion: questions on grading: Piazza,
More informationCMSC 424 Database design Lecture 3: Entity-Relationship Model. Book: Chap. 1 and 6. Mihai Pop
CMSC 424 Database design Lecture 3: Entity-Relationship Model Book: Chap. 1 and 6 Mihai Pop Database Design Steps Entity-relationship Model Typically used for conceptual database design info Conceptual
More informationTHE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E)
THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E) 2 CHAPTER 7 OUTLINE Using High-Level, Conceptual Data Models for Database Design Entity-Relationship (ER) model Popular high-level conceptual
More informationCS 146 Database Systems
DBMS CS 146 Database Systems Entity-Relationship (ER) Model CS 146 1 CS 146 2 A little history Progression of Database Systems In DBMS: single instance of data maintained and accessed by different users
More informationHigh-Level Database Models. Spring 2011 Instructor: Hassan Khosravi
High-Level Database Models Spring 2011 Instructor: Hassan Khosravi Database Modeling and implemnation process Ideas High-Level Design Relational Database Schema Relational DBMS 4.2 The Entity/Relationship
More informationChapter 7: Entity-Relationship Model
Chapter 7: Entity-Relationship Model, 7th Ed. See www.db-book.com for conditions on re-use Chapter 7: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram Design Issues Weak Entity
More informationENTITY-RELATIONSHIP MODEL. CS 564- Spring 2018
ENTITY-RELATIONSHIP MODEL CS 564- Spring 2018 WHAT IS THIS LECTURE ABOUT E/R Model: entity sets, attribute relation: binary, multi-way relationship roles, attributes on relationships subclasses (ISA) weak
More informationDatabase Management System (15ECSC208) UNIT I: Chapter 2: Relational Data Model and Relational Algebra
Database Management System (15ECSC208) UNIT I: Chapter 2: Relational Data Model and Relational Algebra Relational Data Model and Relational Constraints Part 1 A simplified diagram to illustrate the main
More information