Database Design Chapter 2. Goal of all Information Systems  To add value –Reduce costs –Increase sales or revenue –Provide a competitive advantage.

Slides:



Advertisements
Similar presentations
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Advertisements

Data Design The futureERD - CardinalityCODINGRelationshipsDefinition.
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Chapter 3 The Relational Model Transparencies © Pearson Education Limited 1995, 2005.
Database Design & Mapping
Chapter 3. 2 Chapter 3 - Objectives Terminology of relational model. Terminology of relational model. How tables are used to represent data. How tables.
Entity-Relationship Model and Diagrams (continued)
Chapter 4 ENTITY-RELATIONSHIP MODELLING.
Implementing an REA Model in a Relational Database
APPENDIX C DESIGNING DATABASES
Data Modeling and Entity- Relationship Model I IST2101.
MS Access 2007 IT User Services - University of Delaware.
Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA.
Database Design.  Define a table for each entity  Give the table the same name as the entity  Make the primary key the same as the identifier of the.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
Entity-Relationship modeling Transparencies
3.1 CSIS 3310 Chapter 3 The Entity-Relationship Model Conceptual Data Modeling.
Using MIS 4e Chapter 5 Database Processing
Chapter 5 1 © Prentice Hall, 2002 Chapter 5: Transforming EER Diagrams into Relations Mapping Regular Entities to Relations 1. Simple attributes: E-R attributes.
Entity-relationship Modeling Transparencies 1. ©Pearson Education 2009 Objectives How to use ER modeling in database design. The basic concepts of an.
Database Design Concepts
A Guide to SQL, Eighth Edition Chapter Two Database Design Fundamentals.
Introduction to Accounting Information Systems
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Concepts and Terminology Introduction to Database.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Relational Databases (MS Access)
Database Design Principles – Lecture 3
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T5 DESIGNING DATABASE APPLICATIONS.
Chapter 3: Relational Model  Structure of Relational Databases  Normal forms (chap. 7)  Reduction of an E-R Schema to Relational (Sect. 2.9)  Relational.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T5: Designing Database Applications Business Driven Technology.
Implementing an REA Model in a Relational Database
Databases. Not All Tables Are Created Equal Spreadsheets use tables to store data and formulas associated with that data The “meaning” of data is implicit.
1 A Guide to MySQL 2 Database Design Fundamentals.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
Concepts of Database Management Sixth Edition Chapter 6 Database Design 2: Design Method.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Relational Database. Database Management System (DBMS)
System Design System Design - Mr. Ahmad Al-Ghoul System Analysis and Design.
Database Fundamentals Lecture 4 Useful website for MySQL download language.com/workshops/Default.asp ?workshop=21.
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. Adding a new field 1Right click the table name and select design view 2Type the field information at the end.
Concepts of Database Management, Fifth Edition Chapter 6: Database Design 2: Design Methodology.
Jozef Kuper.  Describe a Database  Entities  Atributes  Relationships.
Relational Theory and Design
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management
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.
Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
The Entity-Relationship Model, P. I R. Nakatsu. Data Modeling A data model is the relatively simple representation, usually graphic, of the structure.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
Chapter 3 The Relational Model. Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between mathematical.
Microsoft Access CS 110 Fall Entity Relationship Model Entities Entities Principal data object about which information is to be collectedPrincipal.
Data Modeling and Entity-Relationship Model I
DATA SCIENCE MIS0855 | Spring 2016 Designing Data
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
Order Database – ER Diagram
© The McGraw-Hill Companies, All Rights Reserved APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
ERD’s REVIEW DBS201.
Presentation transcript:

Database Design Chapter 2

Goal of all Information Systems  To add value –Reduce costs –Increase sales or revenue –Provide a competitive advantage

Information System (IS) Project Success  On-time  Within budget  Meets customer’s expectations

IS Project Development  Model – a simplified view of a real- world system  Three common types of models –Process models (data flow diagrams) –Class or object models* –Event models (sequence charts which show timing of events)

Initial Steps in Database Design 1. Identify the exact goals of the system. 2. Talk with the users to identify the basic forms (inputs) and reports (outputs). 3. Identify the data items to be stored. 4. Design the classes (tables) and relationships. 5. Identify any business constraints. 6. Verify the design matches the business rules.

Important Reminder  Business rules are very important. For example: –There is a single individual designated as the order placer for each company purchasing products from your organization –A customer’s order cannot be placed until all outstanding bills have been paid –Customer’s address and phone number must be on file before an order can be placed

Identifying User Requirements  Interview users  Observe operations in the firm  Review forms and reports

Business Objects  All business deal with entities or objects –Customers –Products –Employees –Sales  When developing IS systems, we use the term entity to describe some item in the real world that we wish to track

Entities/Classes Customer CustomerID LastName FirstName Phone Address City State ZIP Code Name Attributes or Properties Add Customer Delete Customer Methods (optional for database) *In relational databases, tables represent each class with attributes being reported in columns and individual entries being stored in rows (tuples)

Class Diagram

Primary Keys  Every database table must have a primary key so that tables can be linked  The primary key must be a unique identifier for each entry (row) in the table –Name is not a unique identifier –Don’t use SSN

Associations and Relationships among Entities (classes)  Cardinality Constraint identifies: –The number of instances (multiplicity) one entity can be associated with another  One-to-one  One-to-many  Many-to-many –Whether the association is mandatory or optional  Optional association  Mandatory association

Multiplicity Customer Order 1 * Each customer can place many orders An order is placed by 1 customer Employee Examples: Tasks ** Each employee can perform several tasks Tasks can be completed by several different employees

Mandatory? Customer Order 1 A customer does not have to place an order An order must be placed by a customer Employee Examples: Tasks 11 Each employee must perform tasks Tasks must be completed by an employee 0

Alternate Terminology Customer Order Optional-ManyMandatory-One 1…10…*

Many-to-Many (N-ary) Associations  When two or more classes have a many-to-many association  Must be eliminated by adding a new entity called an associative entity

N-ary Associations Employee Component Product * * **

N-ary Association Example Employee Name... Component CompID Type Name Product ProductID Type Name * ** Assembly EmployeeID CompID ProductID Multiplicity is defined as the number of items that could appear if the other N-1 objects are fixed. Almost always “many.” 1 1 1