1 ASPP(DATABASE DESIGN) Database Design. 2 ASPP(DATABASE DESIGN) Objectives àDefine the terms entity, record, and attribute and discuss the various types.

Slides:



Advertisements
Similar presentations
Chapter 6 Data Design.
Advertisements

Entity-Relationship (ER) Modeling
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Database Systems: Design, Implementation, and Management Tenth Edition
Data Design The futureERD - CardinalityCODINGRelationshipsDefinition.
ERD diagram Data Design - Mr. Ahmad Al-Ghoul
Concepts of Database Management Seventh Edition Chapter 6 Database Design : ERD Model.
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Modeling the Data: Conceptual and Logical Data Modeling
ISMT221 Information Systems Analysis and Design Entity-Relationship Diagram Lab 4 Tony Tam.
System Analysis - Data Modeling
Entity Relationship Diagrams Basic Elements and Rules.
Agenda for Week 1/31 & 2/2 Learn about database design
Data Modeling with ERD ISYS 363. Entity-Relationship Diagram An entity is a “thing” in the real world, such as a person, place, event for which we intend.
Entity Relationship Diagrams
The Relational Database Model:
Ch5: Software Specification. 1 Descriptive specifications  Describe desired properties of system  Three types:
Entity Relationship Diagrams
System Analysis and Design
System Analysis and Design
Modern Systems Analysis and Design Third Edition
APPENDIX C DESIGNING DATABASES
Entity-Relationship Design
 An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a database.  An Entity Relationship.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
File and Database Design SYS364. Today’s Agenda WHTSA DBMS, RDBMS, SQL A place for everything and everything in its place. Entity Relationship Diagrams.
Business Process Modeling
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
IS 325 Notes for Wednesday September 4, Syllabus Change I eliminated quizzes I increased the points allocated to homework assignments.
Copyright (c) 2014 Pearson Education, Inc. Introduction to Databases.
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
Concepts and Terminology Introduction to Database.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T5 DESIGNING DATABASE APPLICATIONS.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T5: Designing Database Applications Business Driven Technology.
Database Design – Lecture 3 Conceptual Database Design.
1 Entity-Relationship Diagram. 2 Components of ERD: –Entity –Relationship –Cardinality –Attributes.
Next Back A-1 Management Information Systems for the Information Age Second Canadian Edition Copyright 2004 The McGraw-Hill Companies, Inc. All rights.
C-1 Management Information Systems for the Information Age Copyright 2004 The McGraw-Hill Companies, Inc. All rights reserved Extended Learning Module.
System Design System Design - Mr. Ahmad Al-Ghoul System Analysis and Design.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Data modeling using the entity-relationship model Chapter 3 Objectives How entities, tuples, attributes and relationships among entities are represented.
IT 21103/41103 System Analysis & Design. Chapter 04 Data Modeling.
IMS 4212: Introduction to Data Modeling—Relationships 1 Dr. Lawrence West, Management Dept., University of Central Florida Relationships—Topics.
Description and exemplification of entity-relationship modelling.
 An entity-relationship diagram (ERD) is a specialized graphic that illustrates the interrelationships between entities in a database.
Relational Theory and Design
Data Modeling with ERD BUS 782. Entities An entity is a person, place, object, event, or concept in the user environment about which the organization.
INTRODUCTION TO DATABASE DESIGN. Definitions Database Models: Conceptual, Logical, Physical Conceptual: “big picture” overview of data and relationships.
Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
The Entity-Relationship Model, P. I R. Nakatsu. Data Modeling A data model is the relatively simple representation, usually graphic, of the structure.
Lecture 91 Introduction to Data Analysis and Logic Specification Objectives l Draw an entity-relationship diagram, and explain the types of entity relationships.
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
Data Modeling Supplement. Six Blind Men and the Elephant.
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Modeling the Data: Conceptual and Logical Data Modeling.
Data Modeling with ERD ISYS 363.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. A database is a collection of information organized to provide efficient retrieval. The collected information.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
Database Design Chapters 17 and 18.
CSCI-100 Introduction to Computing
ERD’s REVIEW DBS201.
SYSTEMS ANALYSIS & DESIGN
CHAPTER 2 - Database Requirements and ER Modeling
Entity-Relationship Diagram (ERD)
Database Design Chapter 7.
Presentation transcript:

1 ASPP(DATABASE DESIGN) Database Design

2 ASPP(DATABASE DESIGN) Objectives àDefine the terms entity, record, and attribute and discuss the various types of keys àDraw an entity-relationship diagram, and explain the types of entity relationships àDefine cardinality, cardinality notation, and crow’s foot notation àExplain normalization, including examples of first, second, and third normal form

3 ASPP(DATABASE DESIGN) Objectives àCompare and contrast database management and file processing environments àExplain various types of database organization, including hierarchical, network, and relational design àDescribe various types of files, including master, transaction, table, work, history, and security

4 ASPP(DATABASE DESIGN) àData terminology and concepts àRelationships among data objects àEntity-relationship diagrams (ERDs) Introduction

5 ASPP(DATABASE DESIGN) àData design includes àEntities àFields àRecords àKeys Data Terminology and Concepts

6 ASPP(DATABASE DESIGN) àDefinitions àEntity: a person, place, thing, or event for which data is collected and maintained àField (attribute): a single characteristic or fact about an entity àRecord: a collection of fields that describes one instance of an entity Data Terminology and Concepts

7 ASPP(DATABASE DESIGN)

8 àDefinitions àKey field: a field used to locate, retrieve, or identify a specific record àPrimary key: a key that uniquely identifies each record Data Terminology and Concepts

9 ASPP(DATABASE DESIGN) àKey fields àPrimary keys àA field or combination of fields that uniquely and minimally identifies each member of an entity àA primary key composed of more than one field is called a multivalued key Data Terminology and Concepts

10 ASPP(DATABASE DESIGN)

11 ASPP(DATABASE DESIGN) àKey fields àCandidate keys àAny field that could serve as primary key àAny field that is not a primary key or candidate key is called a nonkey field Data Terminology and Concepts

12 ASPP(DATABASE DESIGN) àKey fields àForeign keys àA field in one file that matches a primary key value in another file àExample: the advisor number is a foreign key in the STUDENT file that matches a primary key value in the ADVISOR file àA foreign key need not be unique àA combination of two or more foreign keys can form a unique primary key value àReferential integrity ensures that a foreign key value cannot be entered unless it matches a primary key value in another file Data Terminology and Concepts

13 ASPP(DATABASE DESIGN) àKey fields àSecondary keys àA field or combination of fields that can be used to access or retrieve records àSecondary keys do not need to be unique Data Terminology and Concepts

14 ASPP(DATABASE DESIGN) àEntity-relationship diagrams (ERDs) àAn ERD is a graphical model that shows relationships among system entities Data Relationships and Entity- Relationship Diagrams

15 ASPP(DATABASE DESIGN)

16 ASPP(DATABASE DESIGN) àEntity-relationship diagrams (ERDs) àAn ERD is a graphical model that shows relationships among system entities àEach entity is a rectangle, labeled with a noun àEach relationship is a diamond, labeled with a verb àTypes of relationships àOne-to-one (1:1) àOne-to-many (1:M) àMany-to-many (M:N) àA full ERD shows all system relationships Data Relationships and Entity- Relationship Diagrams

17 ASPP(DATABASE DESIGN)

18 ASPP(DATABASE DESIGN) àOne-to-one (1:1) relationship àExists when exactly one of the second entity occurs for each instance of the first entity àExamples àOne office manager heads one office àOne vehicle ID number is assigned to one vehicle àOne driver drives one delivery truck àOne faculty member is chairperson of one department Data Relationships and Entity- Relationship Diagrams

19 ASPP(DATABASE DESIGN)

20 ASPP(DATABASE DESIGN) àOne-to-many (1:M) relationship àExists when one occurrence of the first entity can be related to many occurrences of the second entity, but each occurrence of the second entity can be associated with only one occurrence of the first entity àExamples àOne individual owns many automobiles àOne customer places many orders àOne department employs many employees àOne faculty advisor advises many students Data Relationships and Entity- Relationship Diagrams

21 ASPP(DATABASE DESIGN)

22 ASPP(DATABASE DESIGN) àMany-to-many (M:N) relationship àExists when one instance of the first entity can be related to many instances of the second entity, and one instance of the second entity can be related to many instances of the first àExamples àA student enrolls in one or more classes, and each class has one or more students registered àA passenger buys tickets for one or more flights, and each flight has one or more passengers àAn order lists one or more products, and each product is listed on one or more orders Data Relationships and Entity- Relationship Diagrams

23 ASPP(DATABASE DESIGN)

24 ASPP(DATABASE DESIGN) àA full ERD shows all system relationships àExamples àA sales rep serves one or more customers, but each customer has only one sales rep àA customer places one or more orders, but each order has only one customer àAn order lists one or more products, and each product can be listed in one or more orders àA warehouse stores one or more products, and each product can be stored in one or more warehouses Data Relationships and Entity- Relationship Diagrams

25 ASPP(DATABASE DESIGN)

26 ASPP(DATABASE DESIGN) àCardinality àDescribes how instances of one entity relate to another àMandatory vs. optional relationships àCrow’s foot notation is one method of showing cardinality Data Relationships and Entity- Relationship Diagrams

27 ASPP(DATABASE DESIGN)

28 ASPP(DATABASE DESIGN) àCardinality àDescribes how instances of one entity relate to another àMandatory vs. optional relationships àCrow’s foot notation is one method of showing cardinality àMost CASE products support the drawing of ERDs Data Relationships and Entity- Relationship Diagrams

29 ASPP(DATABASE DESIGN)

30 ASPP(DATABASE DESIGN) àCreating an ERD 1. Identify the entities 2. Determine all significant events or activities for two or more entities 3. Analyze the nature of the interaction 4. Draw the ERD Data Relationships and Entity- Relationship Diagrams