1 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management.

Slides:



Advertisements
Similar presentations
Database Design Process
Advertisements

© McGraw-Hill Companies, Inc., McGraw-Hill/Irwin Extended Learning Module C Designing Databases and Entity-Relationship Diagramming.
IT420: Database Management and Organization
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Accounting System Design
Systems Development Life Cycle
Chapter 3 Database Management
Chapter 3: Modeling Data in the Organization
Entity-Relationship Model and Diagrams (continued)
Modern Systems Analysis and Design Third Edition
Chapter 3: Modeling Data in the Organization
Chapter 3 © 2005 by Prentice Hall 1 Objectives Definition of terms Definition of terms Importance of data modeling Importance of data modeling Write good.
1 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management.
Chapter 3 Data Modeling Fundamentals of Database Management Systems by
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
1 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management.
1 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management.
Introduction to Databases
Chapter 7 Logical Database Design
Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA.
 An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a database.  An Entity Relationship.
Chapter 6 The Relational Database Model: Additional Concepts
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Entity Relationship Diagrams (ERDs)
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
1 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management.
ระบบฐานข้อมูลขั้นสูง (Advanced Database Systems) Lecturer AJ. Suwan Janin Phone:
Chapter 3: Modeling Data in the Organization
1 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 2 Slide 1 Chapter 10 Designing Databases.
Relational DB Components
IS 325 Notes for Wednesday September 4, Syllabus Change I eliminated quizzes I increased the points allocated to homework assignments.
Principles of Database Design, Part II AIMS 2710 R. Nakatsu.
Fundamentals of Database Management Systems, 2nd ed
Concepts of Database Management, Fifth Edition Chapter 1: Introduction to Database Management.
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
1 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management.
PLUG IT IN 3 Fundamentals of Relational Database Operations.
1 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management.
Database Design Part of the design process is deciding how data will be stored in the system –Conventional files (sequential, indexed,..) –Databases (database.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 2: Modeling Data in the Organization.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Data Modeling IST210 Class Lecture.
CIS 210 Systems Analysis and Development Week 6 Part II Designing Databases,
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
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)
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
In this session, you will learn to: Map an ER diagram to a table Objectives.
Relational Theory and Design
Concepts of Database Management Seventh Edition Chapter 1 Introduction to Database Management.
INTRODUCTION TO DATABASE DESIGN. Definitions Database Models: Conceptual, Logical, Physical Conceptual: “big picture” overview of data and relationships.
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Lecture 91 Introduction to Data Analysis and Logic Specification Objectives l Draw an entity-relationship diagram, and explain the types of entity relationships.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Chapter 9 Designing Databases 9.1.
© 2003 Prentice Hall, Inc.3-1 Chapter 3 Database Management Information Systems Today Leonard Jessup and Joseph Valacich.
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
1 © Prentice Hall, 2002 ITD1312 Database Principles Chapter 4B: Logical Design for Relational Systems -- Transforming ER Diagrams into Relations Modern.
Logical Database Design and the Relational Model.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 5 (Part a): Logical Database Design and the Relational Model Modern Database Management.
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 2: MODELING DATA.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 3: Modeling Data in the Organization Modern Database Management 9 th Edition Jeffrey.
Data Modeling AND ER MODELS.
IS 4420 Database Fundamentals Chapter 3: Modeling Data in the Organization Leon Chen.
Converting ER/EER to logical schema; physical design issues 1.
Chapter 4: Logical Database Design and the Relational Model
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Entity-Relationship Diagram (ERD)
Presentation transcript:

1 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management international, open membership, not- for-profit technology standards consortium. Session 5 Data Modeling ITE 252 Database Management

2 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management international, open membership, not- for-profit technology standards consortium. Unary Relationships Bill of Materials problem. Basic parts make subassemblies; subassemblies make bigger subassemblies

3 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management Ternary Relationships Involve three different entities Can be considered sets of binary relationships

4 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management Ternary Relationships Intersection Data – date of the sale & number of units of the product sold Special five sided intersection data box - describes relationship b’twn two entities

5 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management Many-to-Many Relationships Help minimize wasted space and optimize performance Intersection data: – Data that is part of many-to-many relationship and associated with specific, unique instance of related entities Associative entities: – Entity designed to associate key values from two entities in many-to-many relationship

6 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management Many-to-Many Relationships

7 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management Associative Entities The unique identifier of an associative entity is the combination of the unique identifiers of the two entities in the many-to-many relationships. e.g., a combination of Salesperson Number & Product Number Attributes

8 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management Creating Data Models To create data model: – Identify entities – Identify attributes for each entity – Identify associations between entities Modeling tools include: – Manual (pencil and paper) {we will use this} – Generic draw program (e.g. Visio) – Custom modeling program (ERWIN)

9 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management Visio Database Diagrams

10 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management Example: General Hardware Company Wholesaler and distributor of various manufacturers’ tools and other hardware products Customers: – Hardware and home improvement stores, which in turn sell products at retail to individual consumers Acts as middleman: – Buys goods from manufacturers and sells to retail stores

11 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management Example: General Hardware Company

12 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management Example: General Hardware Company Dependent Entity diagonal hash mark in each corner Quantity is Intersection Data Entity keep track of how many units of each product each salesperson has sold

13 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management Example: Good Reading Bookstores Chain of bookstores Needs to track data for: – Books – Publishers – Authors – Customers

14 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management Example: Good Reading Bookstores Date, Price, and Quantity are Intersection Data in the many-to-many relationship between the BOOK and CUSTOMER entities.

15 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management international, open membership, not- for-profit technology standards consortium. Database design process: Conceptual, logical, and design Main types of databases: Transactional, decision support (DSS), and hybrid Goal of data modeling: Create a well-structured database model that is simple, easy to read and comprehend, and scalable Basic database objects: Tables and indices Tables: Describe entities; are composed of columns (fields) and rows (records), with primary keys used as unique identifiers of records Summary

16 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management international, open membership, not- for-profit technology standards consortium. Key components of relational database model: Entities and relationships Relationships may be binary, unary, or ternary, and have different cardinalities and modalities Many-to-many relationships support intersection data and associative entities In creating a data model, you (1) identify entities, (2) identify their attributes, and then (3) identify associations between entities Summary

17 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management Key Terms Associative entity Balanced tree index Base object Binary relationship Binary tree index B-tree index Bulk loading Business rules Cardinality Clustered index Conceptual design Concurrency Database object Data diagram Data mart Data model Data warehouse Decision support system (DSS)

18 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management Key Terms Entity-Relationship diagram (ERD) Entity-Relationship (E-R) modeling Field Hybrid database Identifier Index Intersection data Large object (LOB) data Leaf node Logical design Many-to-many (M-M) binary relationship Modality Node Nonclustered index Object-relation model (ORM) One-to-many (1-M) binary relationship

19 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management Key Terms One-to-one (1-1) binary relationship Online transaction processing (OLTP) Physical design Primary index Primary key Record Referenced entity Referencing entity Referential integrity Reporting database Scalable Secondary index Stakeholder Ternary relationship Transactional database Throughput Unary relationship

20 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management international, open membership, not- for-profit technology standards consortium. Important Links The Entity Relationship Model – Wikipedia decriptino The Entity Relationship Model At Wal-Mart, World's Largest Retail Data Warehouse Gets Even Larger - This is a big, big, big data warehouse! At Wal-Mart, World's Largest Retail Data Warehouse Gets Even Larger Database Modeling Tools – nice listing of tools, some are free! Database Modeling Tools

21 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management international, open membership, not- for-profit technology standards consortium. Homework Read Chapter Three, pp HW#1: Create an E-R diagram modeled after the Good Reading Bookstores E-R diagram (Figure in your text and slide 14 here) for a publisher of music (limit to MP3s). Draw the diagram by hand and write up a description similar to the one in section (pp.95-95) in your text. Due next class