Database Design – Lecture 6 Moving to a Logical Model.

Slides:



Advertisements
Similar presentations
ER Modeling Case Studies
Advertisements

Chapter # 4 BIS Database Systems
Chapter 5 Normalization of Database Tables
Chapter 5 Normalization of Database Tables
ER Modeling Case Studies
1 Assignment 4 Map entities with relationships to relational schemas. Use DBDL to describe the table schemas.
Assignment Design Methodology A structured approach that uses procedures, techniques, tools, and documentation aids to support and facilitate the.
Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Entity Relationship (ER) Modeling
Entity Relationship (ER) Modeling
DBS201: Introduction to Normalization
Mapping an ERD to a Relational Database To map an ERD to a relational database, five rules are defined to govern how tables are constructed. 1)Rule for.
Entity-Relationship Model and Diagrams (continued)
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
5 Chapter 5 Normalization of Database Tables Example Database Systems: Design, Implementation, and Management, Rob and Coronel Special adaptation for INFS-3200.
Chapter Five Data Modeling with the Entity-Relationship Model.
APPENDIX C DESIGNING DATABASES
Mapping ERM to relational database
Entity Relationship Modeling Objectives: To illustrate how relationships between entities are defined and refined. To know how relationships are incorporated.
The Relational Database Model
DBS201: Entity Relationship Diagram
DATA MODELING AND DATABASE DESIGN DATA MODELING AND DATABASE DESIGN Part 1.
Chapter 7 Data Modeling with Entity Relationship Diagrams Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
COMM 226 Practical tips for creating entity relationship diagrams (ERDs) Chitu Okoli Associate Professor in Business Technology Management John Molson.
DATA MODELING AND DATABASE DESIGN
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Chapter 5 Entity Relationship (ER) Modelling
BIS 360 – Lecture Six (Part 2) Conceptual Data Modeling (Chapter 10 and partial Chapter 12)
Normalization A technique that organizes data attributes (or fields) such that they are grouped to form stable, flexible and adaptive entities.
SQL Structured Query Language Programming Course.
Database Design Principles – Lecture 3
CS370 Spring 2007 CS 370 Database Systems Lecture 4 Introduction to Database Design.
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 4 Entity Relationship (ER) Modeling.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
Database Design – Lecture 3 Conceptual Database Design.
4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Relationship Degree Indicates number of entities or participants.
Database Design – Lecture 5 Conceptual Data Modeling – adding attributes.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
3 & 4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Keys Consists of one or more attributes that determine other.
Database Design – Lecture 8
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 4 Entity Relationship (ER) Modeling.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 4 ENTITY RELATIONSHIP (ER) MODELING Instructor Ms. Arwa Binsaleh 1.
Database Design – Lecture 4 Conceptual Data Modeling.
Week 7-8 DBMS ER-Relational Mapping. ER-Relational Mapping.
DES715 – Database Design Conceptual design. Database Life Cycle Database initial study Database design Implementation Testing Operation Maintenance.
Database Design – Lecture 7
Quiz Where to Store Attributes of Relationship Staff (1) Interviews (0..*) Client Attributes: date, time, comment Staff (StaffNo, …) PK: StaffNo.
Database Design Slide 1 Database Design Lecture 7 part 2 Mapping ERD to Tables.
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
Lecture # 14 Chapter # 5 The Relational Data Model and Relational Database Constraints Database Systems.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
PRJ566 : Project Planning and Management Converting Class Diagram to Relational Schema.
Entity Relationship Modeling
TMC2034 Database Concept and Design
Tables and Their Characteristics
Database Design – Lecture 4
Entity-Relationship Model and Diagrams (continued)
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Review of Week 1 Database DBMS File systems vs. database systems
Chapter 4 Entity Relationship (ER) Modeling
Entity-Relationship Diagram (ERD)
DBMS ER-Relational Mapping
Mapping an ERD to a Relational Database
Entity Relation Model Tingting Zhang.
Chapter # 4 Entity Relationship (ER) Modeling.
Presentation transcript:

Database Design – Lecture 6 Moving to a Logical Model

2 Lecture Objectives How to convert from the conceptual model to the logical model Refining the key structure of an entity Refining relationships between entities based on Business Rules

3 Converting Entities 1. Add attributes to each entity 2. Verify PK defined in conceptual model – is it appropriate for table or does another unique (generic) PK need to be defined 3. Remove derived values

4 Converting Relationships 4. For 1:M connectivity, take the PK of the ‘1’ table and make it an FK in the ‘M’ table 5. For M:N connectivity, create a bridge table Include the PK from each of the original tables as composite PK in the bridge table. These will also be FKs in the bridge table Add additional attributes to the bridge table as required 6. For Strong – Weak Entity relationships, take the PK of the Strong Entity and include it as part of the PK of the Weak Entity. It will also be an FK in the Weak Entity

5 Example Conversion Given the following ERD, convert to a logical model using the techniques provided

6 Example Conversion 1. Add attributes 2. Refine PK’s (this may involve creating a new, more meaningful PK) 3. Remove derived values (none in this example) 4. All relationships revised (1:1, 1:M, M:N) Note new entity created to handle M:N relationship between book and customer Note relationship appropriate now between librarian and borrow transactions

7 In Summary A conceptual model can have a few attributes or many attributes depending on the level of detail provided in a narrative Most often, we will add as many attributes as are known to the initial conceptual model to get it to an adequate level of detail (or as close to logical as possible)

8 Example Logical Design SAS (Support A Student) Window Cleaning wants to keep track of its students and the jobs they are assigned. For an employee information such as name, address, and phone number are required. Students are grouped into job categories as their salary is calculated by the category they are in. The category includes code, description and hourly rate. A student can on have one job category at a time but each job category can have many students. All jobs are tracked by an id number, a start date, an end date and a cost. More than one employee will work on a job and an employee will have many jobs assigned to them.