CSI 2132 Tutorial 2. Conceptual Modeling: The Entity-Relationship Model. Database Design: Overview 30/01/2012. Get Requirements and Data

Similar documents
CHAPTER 3: DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL

THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E)

DATABASE DESIGN. - Developing database and information systems is performed using a development lifecycle, which consists of a series of steps.

Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model

not necessarily strictly sequential feedback loops exist, i.e. may need to revisit earlier stages during a later stage

CSC 742 Database Management Systems

Lecture 12: Entity Relationship Modelling

The Entity-Relationship Model

Chapter 3. Data Modeling Using the Entity-Relationship (ER) Model

Database Design Overview. Conceptual Design ER Model. Entities and Entity Sets. Entity Set Representation. Keys

Data Analysis 1. SET08104 Database Systems. Napier University

Unit 2.1. Data Analysis 1 - V Data Analysis 1. Dr Gordon Russell, Napier University

Modern Systems Analysis and Design

Popular Sports Survey

SPECIAL REPORT HOW TO EVALUATE A SOCCER COACH

Database Design Process

XV. The Entity-Relationship Model

Database Design Process

Outline. Data Modeling. Conceptual Design. ER Model Basics: Entities. ER Model Basics: Relationships. Ternary Relationships. Yanlei Diao UMass Amherst

Entity/Relationship Modelling. Database Systems Lecture 4 Natasha Alechina

SCHEMAS AND STATE OF THE DATABASE

Database Management Systems

LEVEL I LEADERSHIP ROLE OF THE COACH. September 2007 Page 1

DATABASE MANAGEMENT SYSTEMS. Question Bank:

The Entity-Relationship Model

Databases and BigData

COMP 378 Database Systems Notes for Chapter 7 of Database System Concepts Database Design and the Entity-Relationship Model

Relational Schema Design

LiTH, Tekniska högskolan vid Linköpings universitet 1(7) IDA, Institutionen för datavetenskap Juha Takkinen

Information Management

We know how to query a database using SQL. A set of tables and their schemas are given Data are properly loaded

CSCI315 Database Design and Implementation

Designing a Database Schema

The Entity-Relationship Model

Concepts of Database Management Seventh Edition. Chapter 6 Database Design 2: Design Method

Bridge from Entity Relationship modeling to creating SQL databases, tables, & relations

IV. The (Extended) Entity-Relationship Model

Entity-Relationship Model

How to Make a Domain Model. Tutorial

Database Design Exercises

Exercise 1: Relational Model

Fundamentals of Database Design

Database Design Process. Databases - Entity-Relationship Modelling. Requirements Analysis. Database Design

CMPT 354 Database Systems. Simon Fraser University Summer Instructor: Oliver Schulte

A Tool for Generating Relational Database Schema from EER Diagram

2. Conceptual Modeling using the Entity-Relationship Model

Chapter 2: Entity-Relationship Model. Entity Sets. " Example: specific person, company, event, plant

Chapter 3. Data Analysis and Diagramming

Fundamentals of Database System

Unit 5: Object-Role Modeling (ORM)

PRACTICE EDITION. Airport Social Stories

Chapter 2: Entity-Relationship Model

CS 377 Database Systems. Database Design Theory and Normalization. Li Xiong Department of Mathematics and Computer Science Emory University

Object-Based Databases

Relational Database Concepts

Airline Flight and Reservation System. Software Design Document. Name:

Foundations of Information Management

S.CP.A.1: Venn Diagrams

GROWTH AND DEVELOPMENT

COURSE NAME: Database Management. TOPIC: Database Design LECTURE 3. The Database System Life Cycle (DBLC) The database life cycle contains six phases;

Chapter 2: Entity-Relationship Model. E-R R Diagrams

SOA Adoption Challenges

Rose Data Modeler (logical)

Audiences create Sports

Database Design. Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB

Section 2: Ten Tools for Applying Sociology

2012 NCAA Hints for Volleyball Stat Takers at Matches

Answers to Review Questions

MIDTERM #2: INFORMATION SYSTEMS (INDE499B) Dr. Jennifer Turns Autumn a. Total Time: You will have a total of 50 minutes for this midterm.

LEVEL II LEADERSHIP BENCH MANAGEMENT. January 2008 Page 1

Entity-Relationship Model. Purpose of E/R Model. Entity Sets

Enhanced-ER Data Model

Evaluation experiment for the editor of the WebODE ontology workbench

ER modelling, Weak Entities, Class Hierarchies, Aggregation

Dawson College - Fall 2004 Mathematics Department

MODULE 8 LOGICAL DATABASE DESIGN. Contents. 2. LEARNING UNIT 1 Entity-relationship(E-R) modelling of data elements of an application.

Compositional Security Evaluation: The MILS approach

Entity Relationship Model

Introduction. Below is a list of benefits for the 4v4 method

SOFTBALL GRADES 3-6 PAGE 1. Fill out before using! Run to the. Side slide to the. and back. and back.

Entity Relationship Diagram

CS411 Database Systems

Database Sample Examination

Airline Fleet Planning Models J/1.234J Airline Management Dr. Peter P. Belobaba April 10, 2006

SAMPLE FINAL EXAMINATION SPRING SESSION 2015

Player development, as well as administrative and economic concerns, have all been taken into consideration regarding the new playing standards.

ComponentNo. C_Description UnitOfMeasure. C_Quantity

MS 264 Procedures. The PCMO must inform the Country Director (CD) of a planned medevac.

Lesson 8: Introduction to Databases E-R Data Modeling

Class Diagrams. University. Exercises

You will see a giant is emerging

Database Management System Case Studies

AIRPLANE UTILIZATION AND TURN-TIME MODELS PROVIDE USEFUL INFORMATION FOR SCHEDULE, FLEET, AND OPER ATIONS PLANNING.

How To Train For A Quarter Back

Predicting outcome of soccer matches using machine learning

A brief overview of developing a conceptual data model as the first step in creating a relational database.

Transcription:

CSI 2132 Tutorial 2 Conceptual Modeling: The Entity-Relationship Model Database Design: Overview Get Requirements and Data Conceptual Model Logical Model Physical Model 2 1

Entity-Relationship Diagram Entities Entity Types and Entity Sets Strong vs. Weak Attributes Key Attributes Composite Attributes Multi-valued Attributes Derived Attributes Relationships Degree and cardinality Role names Partial vs. Total Identifying relationships 3 4 2

The ER diagram in the next slide shows a simplified schema for an airline reservations system. Extract from the ER diagram the requirements and constraints that resulted in this schema. Be as precise as possible. 5 Chapter 7: 6 3

The database represents each AIRPORT, keeping its unique airport code, the airport name and the city and state in which it is located. 7 Chapter 7: Each airline FLIGHT has a unique number, the airline to which it belongs and the weekdays on which it is scheduled. 8 4

Chapter 7: Each airline FLIGHT has a unique number, the airline to which it belongs and the weekdays on which it is scheduled. 9 A flight is composed of one or more FLIGHT LEGS. Each FLIGHT LEG has a departure airport and scheduled departure time and an arrival airport and scheduled arrival time. 10 5

Chapter 7: 11 A LEG INSTANCE is an instance of a FLIGHT LEG on a specific date (for example, AC1223 leg 1 on July 30, 2011). The actual departure and arrival airports and times are recorded for each flight leg after it concludes. The number of available seats and the airplane used in the LEG INSTANCE are also kept. 12 6

The customer RESERVATION on each leg instance includes the customer name, phone and seat number(s) for each reservation. 13 Information on AIRPLANEs and AIRPLANE TYPEs are also kept. For each airplane type (e.g. DC-10), the type name, manufacturing company, and maximum number of seats are kept. 14 7

The airports in which planes of this type can land are kept in the database. For each airplane, its ID, total number of seats and type are recorded. 15 A database is needed to keep track of the teams and games of a sports league. A team has a number of players, not all of whom participate in each game. The players participating in each game for each team are recorded, as well as the positions they played in that game, and the result of the game. 16 8

Try to design an ER schema diagram for this application, clearly stating any assumptions you make. Choose your favorite sport (hockey, soccer, football, baseball...) 17 Assumptions: Each game in the schedule is univocally identified by a number and the combination of date, starting time and field. The performance of an individual player in a game keeps the information needed for statistics and may be quite complex. 18 9

Chapter 7: 19 Consider a CONFERENCE_REVIEW database in which researchers submit their papers for consideration. Referee reviews are recorded for use in the paper selection process. The DB system caters primarily to reviewers who record answers to evaluation questions for each paper they review and make recommendations regarding rejection or acceptance. 20 10

Paper authors are uniquely identified by their email address. First and last names are also recorded. Each paper gets a unique ID and is described by a title, abstract and the digital file containing the paper. A paper may have multiple authors. One of them is designated as the contact author. 21 Paper reviewers are univocally identified by their email addresses. Each reviewer s first name, last name, phone number, affiliation and topics of interest are also recorded. Each paper is assigned between two and four reviewers. A reviewer rates each paper assigned on 1-10 scale in four categories: technical merit, readability, originality and relevance to the conference. An overall recommendation is finally provided. 22 11

Each review contains two types of written comments: one to be seen by the review committee and the other as feedback to the author(s). Design an ER diagram for the CONFERENCE REVIEW database. 23 Chapter 7: 24 12

CSI 2132 Tutorial 2 Conceptual Modeling: The Entity-Relationship Model 13