Review Questions What is data modeling? What is the actual data model that is created called? Data modeling is a technique for organizing and documenting.

Slides:



Advertisements
Similar presentations
Data Modeling and the Entity-Relationship Model
Advertisements

Data Modeling and the Entity-Relationship Model
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 3 rd Edition.
Alternative Approach to Systems Analysis Structured analysis
Analysis Modeling.
IT420: Database Management and Organization
Entity-Relationship Model
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Chapter 5 Understanding Entity Relationship Diagrams.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
System Analysis - Data Modeling
Associative Entities A relationship cannot have attributes
Fundamentals, Design, and Implementation, 9/e Chapter 3 Entity-Relationship Data Modeling: Process and Examples Instructor: Dragomir R. Radev Fall 2005.
Modeling Data The Entity Relationship Model (ER) For Database Design.
Entity Relationship Diagrams
Data Modeling Entity - Relationship Models. Models Used to represent unstructured problems A model is a representation of reality Logical models  show.
Lesson-19 Data Modeling and Analysis
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 5 th Edition.
Chapter 4 Entity Relationship (ER) Modeling
Modern Systems Analysis and Design Third Edition
Entity/Relationship Modelling
BIS310: Week 7 BIS310: Structured Analysis and Design Data Modeling and Database Design.
Entity Relationship Modeling Objectives: To illustrate how relationships between entities are defined and refined. To know how relationships are incorporated.
Class Agenda – 04/04/2006 Discuss database modeling issues
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Data Modeling using Entity Relationship Diagramming (ERD)
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.
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
Chapter 4 The Relational Model.
Business Process Modeling
CHAPTER 2. FUNDAMENTAL OF ENTITY RELATIONSHIP (ER)
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
Entity Relationship Diagrams Objectives s Learn the Elements of the E-R model (entities, attributes, and relationships) s Show how to apply the E-R model.
BIS 360 – Lecture Six (Part 2) Conceptual Data Modeling (Chapter 10 and partial Chapter 12)
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
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.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Database Design Principles – Lecture 3
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
Entity-Relationship (ER) Modelling ER modelling - Identify entities - Identify relationships - Construct ER diagram - Collect attributes for entities &
1 Entity-Relationship Diagram. 2 Components of ERD: –Entity –Relationship –Cardinality –Attributes.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
Database Design – Lecture 5 Conceptual Data Modeling – adding attributes.
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.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
1 A Demo of Logical Database Design. 2 Aim of the demo To develop an understanding of the logical view of data and the importance of the relational model.
IFS310: Module 6 3/1/2007 Data Modeling and Entity-Relationship Diagrams.
Description and exemplification of entity-relationship modelling.
The Entity-Relationship Model, P. I R. Nakatsu. Data Modeling A data model is the relatively simple representation, usually graphic, of the structure.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
1 Information System Analysis Topic-3. 2 Entity Relationship Diagram \ Definition An entity-relationship (ER) diagram is a specialized graphic that illustrates.
Lecture 5 Entity Relationship Modeling
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Ch 05. Basic Symbols ( manino ). Cardinalities Cardinality Notation.
Chapter 5 Understanding Entity Relationship Diagrams.
ERD :: 19 / 1 / Entity-Relationship (ER) Modeling. ER Modeling is a top-down approach to database design. Entity Relationship (ER) Diagram –A.
Entity Relationship Diagram ERD. Background Peter Chen developed ERDs in Charles Bachman and James Martin have added some slight refinements to.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
Database Design Chapters 17 and 18.
Entity Relationship Modeling
Data Modeling and the Entity-Relationship Model
Lecture on Data Modeling and Analysis
Entity-Relationship Diagram (ERD)
MIS2502: Data Analytics Relational Data Modeling 2
E.R. Examples.
Presentation transcript:

Review Questions What is data modeling? What is the actual data model that is created called? Data modeling is a technique for organizing and documenting a system’s data. There are several notations for data modeling. The actual model is frequently called an entity relationship diagram (ERD) because it depicts data in terms of the entities and relationships described by the data

Review Questions What is an entity, an attributes and a relationship? Give some examples An entity is something about which we want to store data. Examples: Student, University, Book, house etc An attribute is a descriptive property or characteristic of an entity. Examples: Student name, student address, student GPA. A relationship is a natural business association that exists between one or more entities. Relationships are important to identify and describe because they are the logical link between business functions. They can be interpreted in both directions between multiple entities. Example: Surgeon Operation

Review Questions Why do primary key/identifier need to contain unique values? One of the aspects of the definition of an entity is the fact that there are multiple occurrences of the entity. If there are not multiple instances of something that is a potential entity, that something is not an entity in the system. Consequently, there must be a way of identifying each individual occurrence of an entity so that it can be picked out from amongst all the other instances of the entity. That is the purpose of having identifiers or primary keys with unique values

Review Questions What is cardinality? The term, cardinality, refers to the maximum number of times an instance in one entity can be related to instances of the other entity. If the cardinality is one, then we can infer that one instance of the entity can be related to just one instance of the other entity. If the cardinality is more than one, then we know that one instance of the entity can be related to more than one instance of the other entity. The determination of cardinality is based upon whatever is appropriate for the business situation being described

Review Questions Draw the following relationships: A patient must be assigned to only one doctor and a doctor can have one or many patients Patient Doctor assigned

Review Questions Draw the following relationships: An employee has one phone extension and a unique phone extension is assigned to an employee Employee Phone extension assigned

Review Questions Draw the following relationships: A movie theater shows many different movies and the same movie can be shown at different movie theaters around town Theater Movie Shows

Review Questions What is an associative entity? What role does it play in ternary relationships? What role does it play in resolving nonspecific relationships? Associate entity is an entity that inherits its primary key from more than one other entity The associate entity plays the connecting role in the ternary relationships It resolves nonspecific relationships by becoming the connecting factor that resolves the many-to-many relationship by using the foreign keys from other entities

Review Questions What is the primary key of shipped product Shipment Shipment Number (Primary Key) Product Product Number (Primary Key) Shipped Product Shipment Number + Product Number

Review Questions What is a week entity? The child entity of any identifying relationship is frequently referred to as a “weak” entity because its identification is dependent on the existence of the parent entity’s existence

Review Questions Differentiate between supertype and subtype entities An entity supertype is an entity whose instances store attributes that are common to one or more entity subtypes An entity subtype is an entity whose instances inherit some common attributes from an entity supertype and then add other attributes that are unique to an instance of the subtype

Interpreting the diagram University Student The model specifies a University entity (hence we want to keep data about Universities) The model specifies a student entity (hence we want to keep data about students ) A University can enroll one or more students. Each Student may be enrolled in zero or one University Enroll

Interpreting the diagram Course Student The model specifies a Course entity (hence we want to keep data about Courses) The model specifies a student entity (hence we want to keep data about students ) In each course zero, one or more students can be enrolled. Each Student may be enrolled in zero, one or many courses. Enroll

Interpreting the diagram Mother Children The model specifies a Mother entity The model specifies children entity A mother can have zero, one or more children Each child must have one mother has

Interpreting the diagram Husband Wife The model specifies a Husband entity The model specifies a wife entity A husband must have one wife A wife must have one husband. has

Review Questions Given the following attributes and entities, indicate which attributes could be identifiers for each of the entities. Map all the attributes to their appropriate entity. Remember, each attribute should describe one and only one entity. Entities: Seller, Buyer, Listing, House, Property Attributes: Seller name, House style, Square foot size, Listing price, Garage size, Number of bathrooms, Property size, Buyer name, Basement size, Buyer phone number, Property description, Seller Address, Listing Number, House Address, Seller: Buyer Listing House Property Seller Name, Seller Address Buyer Name, Buyer Phone Number Listing Number, Listing Price House Address, House Style, Square Foot Size, Number of Bathrooms, Garage Size, Basement Size Property Description, Property Size

Assignment 1 1. Construct a Context Diagram for Peak E-Book Publishing’s proposed sales and book tracking system, based on the narrative in Exhibit 1 above to illustrate the system’s interfaces with its environment and to describe project scope. (Marks 30%)  Marks for tidiness and legibility of diagram, including spelling and grammar  Main Process/System ]  Entities/external agent  Data flows

Assignment 1 2. Draw appropriate Level 0 Data Flow Diagram, based on the Context Diagram constructed in step 1 and the information provided. (Note: you may need to split the diagram onto 2 pages for clarity) (Marks 55%)  Marks for correct use of DFD rules  Marks for tidiness and legibility of diagram  Marks for identification of suitable processes  Marks for identification of suitable data stores  Marks for the data flows and their description

Assignment 1 3. Draw a relationship between these entities: Author, Book, Salesperson. Describe, as a series of declarative sentences, the relationships you have drawn (Marks 15%)  Marks for correct ER Diagram with tidiness  Marks for correct description of relationships with good grammar and explanation The model specifies a University entity (hence we want to keep data about Universities) The model specifies a student entity (hence we want to keep data about students ) A University can enroll one or more students. Each Student may be enrolled in zero or one University University Student Enroll