Announcements Reading for Monday –Appendix A Homework 3 – Due today Project: Steps 2.1-24 –Due 10/4 Exam 1 – 10/6.

Slides:



Advertisements
Similar presentations
Exercise 1 Consider the ER diagram below. Assume that an employee may work in up to two departments or may not be assigned to any department. Assume that.
Advertisements

Week 5 Relational Database Design by ER- -to-Relational Mapping.
the Entity-Relationship (ER) Model
Announcements Reading for Friday Homework 2 - Due 9/24
Translating from ER to Relationship Schema Adapted from Juliana Freire.
Announcements Reading for Wednesday Homework 2 - Due 9/22
Chapter 5 1 © Prentice Hall, 2002 Chapter 5: Transforming EER Diagrams into Relations Mapping Regular Entities to Relations 1. Simple attributes: E-R attributes.
Conceptual Design Lecture - 2 Database Development.
Conversion from ER diagram to relational model
1 E/R to relational mapping algorithm – overview Mapping algorithm step 1-7 Steen Jensen, autumn 2013.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 9 Relational Database Design by ER- and EER-to- Relational Mapping.
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
Announcements Reading for Friday –4.7 – 4.10 Homework 3 – Due 10/1 Project: Steps 2.1-2? –Due 10/4 Exam 1 – 10/6.
IS 230Lecture 4Slide 1 Entity Relationship to Relational Model Mapping Lecture 5.
CS 370 Database Systems Lecture 9 The Relational model.
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
Database Management Systems MIT Lesson 02 – Database Design (Entity Relationship Diagram) By S. Sabraz Nawaz.
SE305 Database System Technology 23/10/2014 Quiz-2.
COMP231 Tutorial 1 ER Model and ER to Relational Schema.
E-R to Relational - Basic
1 CS 430 Database Theory Winter 2005 Lecture 15: How to Convert an ER Model to Relations.
Database Design – Lecture 4 Conceptual Data Modeling.
IS6145 Database Analysis and Design Lecture 4: Fine-Granular Design-Specific ER Modelling Rob Gleasure
Lecture 03 Entity-Relationship Diagram. Chapter Outline.
Rensselaer Polytechnic Institute CSCI-4380 – Database Systems David Goldschmidt, Ph.D.
Logical Database Design Transparencies 1. ©Pearson Education 2009 Objectives How to create a set of tables from an ER model. How to check that the tables.
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.
Test SEITA.
Conversion from ER diagram to relational model 1 ER is a visual model The relational model is a matemathical model.
April 20022CS3X1 Database Design Entity-relationship modelling John Wordsworth Department of Computer Science The University of Reading
Database -Entity-Relationship Model 2012/03/05.
Chapter Two Database Design (ER Model) Objectives: ER model Type of relationships Role in a relation Concept of Weak entities.
Relational Database Design by ER- and EER-to-Relational Mapping
Contents Design Process Modeling Constraints E-R Diagram Design Issues
Entity/Relationship Modelling
IS6145 Database Analysis and Design Lecture 4: Fine-Granular Design-Specific ER Modelling Rob Gleasure
Order Database – ER Diagram
The Entity-Relationship Model
Database Management Systems II
Chapter 4: Part B Logical Database Design and the Relational Model
Entity-Relationship Model
Chapter 2: Entity-Relationship Model
Chapter 7: Entity-Relationship Model
ER Diagram Practical Example
Entity-Relationship Modelling
Relational Database Design by ER- and EERR-to-Relational Mapping
Relational Database Design by ER-to-Relational Mapping
Payroll Management System
Order Database – ER Diagram
Transformation of E/R Diagram to Relation
IS6125/IS6145 Database Analysis and Design Lecture 4: Fine-Granular Design-Specific ER Modelling Rob Gleasure
IS6125 Database Analysis and Design Lecture 6: Fine-Granular Design-Specific ER Modelling Rob Gleasure
الفصل الخامس قواعد البيانات Databases
Entity-Relationship Modelling
IST 318 Database Administration
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Relational Database Design (Top Down)
ERD (Entity Relationship Diagrams)
Database Modeling using Entity Relationship Model (E-R Model)
Mapping E/R to Relational
Conceptual Data Modeling Using Entities & Relationships
Relational Database Design Examples
Chapter 7: Entity-Relationship Model
Entity-Relationship Diagram (ERD)
DBMS ER-Relational Mapping
Objective SWBAT use graphs to represent relations and functions.
Relational Database Design
Entity Relation Model Tingting Zhang.
G061 - Data Dictionary.
CS4222 Principles of Database System
Presentation transcript:

Announcements Reading for Monday –Appendix A Homework 3 – Due today Project: Steps –Due 10/4 Exam 1 – 10/6

Sample Queries on the STUDENT/FACULTY/TRANS Database 1.Find the ages of all students 2.Find all information on males transferees 3. Find all 21 year olds who are students or transferees 4. Find the ages of all students who have the same name as a faculty member.

Sample Queries on the STUDENT/FACULTY/TRANS Database 5. Find all possible student advisor pairs. List their names only. 6. Find all transferees who are the same age as the student named Beckman. 7. Find all faculty in Quincy's department.

Mapping Lecture 9

Views External models in 3-level architecture are called external views Relational views are slightly different Relational view is constructed from existing (base) tables External model may have views and base tables

Mapping E-R Diagrams to Relations (Details pp ) Create a table for each entity type and each relationship. 1.Deal with strong entity types – name lastfirst patId DOBSSN Patient phone areaCodenumber

Mapping E-R Diagrams to Relations 2.Deal with weak entity types – Visit visitNo Charge amount date item incurs 1 M

Mapping E-R Diagrams to Relations 3.Deal with relationships –1 to 1 – –1 to N – –M - N –

Mapping E-R Diagrams to Relations 4.Deal with multi-valued attributes -