IT354 Database Design Seminar 5: May 19, 2011 Physical Database Design Entity-Relationship Diagrams.

Slides:



Advertisements
Similar presentations
Database Design DB Chapter 5 J.G. Zheng June 29th 2005.
Advertisements

Concepts of Database Management Seventh Edition Chapter 6 Database Design : ERD Model.
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Concepts of Database Management Sixth Edition
© 2005 by Prentice Hall 1 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 7 th Edition Jeffrey A. Hoffer, Mary B.
Concepts of Database Management Sixth Edition
1 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 6 Database Design 2: Design Methodology.
Entity-Relationship Model and Diagrams (continued)
Database Fundamentals Lecture 5. The Design Process continued.
Database Design Chapter 2. Goal of all Information Systems  To add value –Reduce costs –Increase sales or revenue –Provide a competitive advantage.
Concepts of Database Management Seventh Edition
MIS2502: Data Analytics Relational Data Modeling
1. 2 Data Modeling 3 Process of creating a logical representation of the structure of the database The most important task in database development E-R.
A Guide to SQL, Eighth Edition Chapter Two Database Design Fundamentals.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Driving School Database
Principles of Database Design, Part II AIMS 2710 R. Nakatsu.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Normalization A technique that organizes data attributes (or fields) such that they are grouped to form stable, flexible and adaptive entities.
1 A Guide to MySQL 2 Database Design Fundamentals.
Fundamentals of Relational Database Operations
Conceptual Database Design
1 A Guide to MySQL 2 Database Design Fundamentals.
Concepts of Database Management Sixth Edition Chapter 6 Database Design 2: Design Method.
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
IT 21103/41103 System Analysis & Design. Chapter 04 Data Modeling.
Concepts of Database Management, Fifth Edition Chapter 6: Database Design 2: Design Methodology.
Relational Theory and Design
Chapter 9 Logical Database Design : Mapping ER Model To Tables.
CS263 Lecture 5: Logical Database Design Can express the structure of a relation by a Tuple, a shorthand notation Name of the relation is followed (in.
1 6 Concepts of Database Management, 5 th Edition, Pratt & Adamski Chapter 6 Database Design 2: Design Methodology Spring 2006.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Concepts of Database Management Seventh Edition Chapter 6 Database Design 2: Design Method.
MIS2502: Data Analytics Relational Data Modeling
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Week 7-8 DBMS ER-Relational Mapping. ER-Relational Mapping.
Databases.  Question 1: What does SQL stand for? …………………………………………………………………… (1 point)  Question 2: Considering programming paradigms, what kind of language.
Entity-Relationship Diagram Presentation Gianna-lee Williams 6AQ Ms. Anderson.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
MIS2502: Data Analytics Relational Data Modeling David Schuff
1 6 Concepts of Database Management, 5 th Edition, Pratt & Adamski Chapter 6 Database Design 2: Design Methodology Spring 2006.
Concepts of Database Management, Fifth Edition Chapter 6: Database Design 2: Design Methodology.
Concepts of Database Management Seventh Edition Chapter 4 Keys and Relationship.
1 Information System Analysis Topic-3. 2 Entity Relationship Diagram \ Definition An entity-relationship (ER) diagram is a specialized graphic that illustrates.
Microsoft Access 2010 Chapter 11 Database Design.
Data Modeling and Entity-Relationship Model I
DATA SCIENCE MIS0855 | Spring 2016 Designing Data
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
FOR MORE CLASSES VISIT  DBM 380 Week 1 Individual Assignment DataBase Paper (New) DBM 380 Week 1 DQ 1 (New) DBM 380 Week 1 DQ 2 (New)
Database Design Chapters 17 and 18.
Order Database – ER Diagram
Information Systems in Organizations 2. 1
Order Database – ER Diagram
Information Systems in Organizations 2. 1
Database Design – Lecture 4
Order Database – ER Diagram
Order Database – ER Diagram
Information Systems in Organizations 2. 1
Information Systems in Organizations 2. 1
Information Systems in Organizations 2. 1
Information Systems in Organizations 2. 1
Information Systems in Organizations 2. 1
Order Database – ER Diagram
Database Design Chapters 17 and 18.
ER Diagram Master How to use this template
DBMS ER-Relational Mapping
Information Systems in Organizations 2. 1
Information Systems in Organizations 2. 1
Information Systems in Organizations 2. 1
Presentation transcript:

IT354 Database Design Seminar 5: May 19, 2011 Physical Database Design Entity-Relationship Diagrams

Activities for this Seminar Preliminary Questions Examine Unit Topics—Seminar Questions Look at details for Unit 5 Assignment

Preliminary Questions Weather check Do you have any questions about the web reading articles?

Seminar Questions What data types can you assign to a column in Microsoft Access? How would you go about designing a survey form that you would use to obtain the information from users to design the required database? What information can you display in a Crow's Foot E-R diagram?

Example data types

Microsoft Access data types Found at the following website us/library/bb208866%28v=office.12%29.a spxhttp://msdn.microsoft.com/en- us/library/bb208866%28v=office.12%29.a spx

Unit 5 Assignment This is the next step of your final assignment for IT354 One part (5 points) is incorporating feedback from your instructor. Please do not wait for me to return Unit 4 assignment to start the other parts.

Unit 5 Assignment—three parts 1. Update the three parts of your Unit 4 project, incorporating the feedback from your instructor (5 points) 2. Merge all user views. Determine all attributes for each table. Represent all tables using Database Design Language (DBDL) Part 2 is worth (25 points)

Unit 5 Assignment 3. From your DBDL representation, create an Entity-Relationship (E-R) Diagram for your database. Use the IDEF1X notation used in the textbook. (See Fig. 6.2 and Fig. 6.8.) Create your E- R Diagram in PowerPoint; change the Page Setup to portrait before you start. When you are satisfied with your diagram, copy and paste it into your project Word document. (30 points)

(Shapes to use in ERD) EntityWeak Associative

Questions

Have a great week! ( ) or

IT354 Database Design Enrichment Seminar ERD Dr. Laura House

Relationships How do you determine the type of relationship between two entity types? To determine the connectivity of a relationship, you make two statements about the relationship, each starting with a singular entity, and examine the (one-word) multiplicity of each. The two statements look at the relationship from each "side." For example, to examine the relationship between employee and order, the two statements would be: 1. _An_ order is taken by only _one_ employee. (Multiplicity = one.) 2. _An_ employee may take _many_ orders. (Multiplicity = many.)

Relationships, cont Determining the type of relationship between two entity types, cont. 1. _An_ order is taken by only _one_ employee. (Multiplicity = one.) 2. _An_ employee may take _many_ orders. (Multiplicity = many.) You combine the two one-word multiplicities to get the connectivity of the relationship. That makes employee to order a one-to-many relationship. The statement with the multiplicity of "many" is used to determine which is the "one" side and which is the "many" side of the relationship. In this case, Employee is the "one" table and Orders is the "many" table. The primary key (PK) of the "one" table, Employee (e.g. EmployeeID), will be a foreign key (FK) in the "many" table, Orders. If you carefully make one statement about the relationship from each side starting with a singular, you will get the correct connectivity with no guesswork.

Relationships, cont Another example: To determine the relationship between order and product, the two statements would be: 1. _An_ order may contain _many_ products. (Multiplicity = many.) 2. _A_ product may be may be contained in by _many_ orders. (Multiplicity = many.) Product to Orders would be a many-to-many relationship. These statements are part of the “business rules.”

Relationships, cont Another example, cont.: In a relational database, a many-to-many relationship must have an intermediate table called an “associative entity” to link the two entity types. Product …. 1 : M …. OrderProduct …. M : 1 …. Orders The OrderProduct associative entity will have the PK of Orders (OrderID) and the PK of Product (ProductID) columns. Each will be a foreign key pointing to their respective “outer” table. In addition, the two columns will be a composite PK in the OrderProduct table. This table is usually called LineItem or OrderDetail. Associative entities are usually not depicted in an Enterprise Data Model.

18 Linking the Tables Customer Number is a Primary Key in CUSTOMERS –And a Foreign Key in ORDERS

Question-how do you link these three tables? (before) Customer Name Address Zip Eric 8299 Elk Order Make Model Year Chevy S Payment Form Card Number Balance Credit

Question-how do you link these three tables? (after) Customer CustomerID(PK) Name Address Zip Eric 8299 Elk Order OrderNumber(PK Make Model Year CustomerID Chevy S Payment PaymentID Form Card Number Balance OrderNum Credit

What are the entity types? What is the identifier (PK) of each? Situation and Business Rules Vintage Music Rocks sells music to customers. The music is on albums. The albums contain several tracks of music. An album has a catalog number. The catalog number is unique and is determined by the album name and release date. An album is in one item. An album may be ordered by many customers. A customer may place multiple orders. A customer may order many albums.

Music Are these relations in 3NF ? Customer ZipCode Orders Album

Music Are these relations in 3NF ? Customer CustomerID Name ZipCode City State Orders OrderNo CustomerName Album Name Album Price Order Date Total Price Qty Album CatalogNo AlbumName Album Description Artist Name Release Date In Stock Value Tracks

Music Are these relations in 3NF ? Customer CustomerID Name ZipCode City State Orders OrderNo CustomerName Order Date Album CatalogNo AlbumName Album Description Artist Name Release Date In Stock Album Price AlbumOrders OrderNoPK CatalogNoPK Discount Total Price Qty TrackAlbum CatalogNo songname track length Track