Example BigHit Video Inc. wants to create an information system for online sales of movies in both DVD and videotape format. People will be allowed to.

Slides:



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

Entity, Attribute, and Relationship DATA ENTITY TYPE: a noun, i.e. roles, events, locations, people, tangible things about which we wish to maintain.
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Systems Development Life Cycle
Database Design & Mapping
Databases Revision.
Systems Analysis Requirements structuring Process Modeling Logic Modeling Data Modeling  Represents the contents and structure of the DFD’s data flows.
Entity-Relationship Data Model CS 157A Professor Sin-Min Lee Student: Yen-Chu Pan.
ER Modeling An E-R model is a conceptual (or logical) data model that includes –Entity (classes) –Attributes of each entity –Relationship types between.
Modeling Data The Entity Relationship Model (ER) For Database Design.
Entity-Relationship Model and Diagrams (continued)
Representing Information with Data Models What is a data model and data modeling? What are Entities and Attributes? Relationships between entities Modeling.
Copyright © 2003 Addison-Wesley Your name here. Copyright © 2003 Addison-Wesley Data Modeling with ER Diagrams What is an Entity-Relationship Model? How.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Representing Information. Data Models A data model is a precise description of information content Types of data models Conceptual (high-level): in terms.
Copyright © 2003 Addison-Wesley Your name here. Copyright © 2003 Addison-Wesley Representing Information with Data Models What is a data model? How does.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Modern Systems Analysis and Design Third Edition
APPENDIX C DESIGNING DATABASES
Data Modeling Using the Entity-Relationship Model
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Data Modeling Using the Entity-Relationship Model
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 7th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R.
1 Web-Enabled Decision Support Systems Entity-Relationship Modeling Prof. Name Position (123) University Name.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Data Modeling with ER Diagrams What is an Entity-Relationship Model? How is an E-R model represented as an E-R diagram? How can a video store be modeled.
Dr. Mohamed Osman Hegaz1 Conceptual data base design: The conceptual models: The Entity Relationship Model.
Copyright © 2003 Addison-Wesley Jesper Rosholm Tørresø.
Your Name Here See Page Notes for Info about Hyperlinks.
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter 6 Structuring.
Principles of Database Systems With Internet and Java Applications Today’s Topic Chapter 2: Representing Information with Data Models The lecture notes.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
ER to Relational Translation COMSATS INSTITUTE OF INFORMATION TECHNOLOGY, VEHARI.
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.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Data Modeling IST210 Class Lecture.
Entity-Relationship Model Using High-Level Conceptual Data Models for Database Design Entity Types, Sets, Attributes and Keys Relationship Types, Sets,
Initial Design of Entity Types for the COMPANY Database Schema Based on the requirements, we can identify four initial entity types in the COMPANY database:
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
The Hong Kong University of Science and Technology COMP3311 Spring 2013 Tutorial 1 ER Diagrams.
Copyright © 2003 Addison-Wesley Sree Nilakanta. Copyright © 2003 Addison-Wesley Developing Relational Models What is the relational model and what is.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Chapter 2 : Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping Constraints Keys E-R Diagram Extended E-R Features Design of.
Database Management Systems MIT Lesson 02 – Database Design (Entity Relationship Diagram) By S. Sabraz Nawaz.
 Entity-relationship models (ERM) Entity-relationship models (ERM)  Simple E-R Diagram Simple E-R Diagram  Weak Entity Weak Entity  Strong Entity.
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.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan Lecture-03 Introduction –Data Models Lectured by, Jesmin Akhter.
INTRODUCTION TO DATABASE DESIGN. Definitions Database Models: Conceptual, Logical, Physical Conceptual: “big picture” overview of data and relationships.
advanced data modeling
DatabaseIM ISU1 Fundamentals of Database Systems Chapter 3 Data Modeling Using Entity-Relationship Model.
Data Modeling Using the Entity-Relationship (ER) Data Model.
CSE 412/598 DATABASE MANAGEMENT COURSE NOTES 3. ENTITY-RELATIONSHIP CONCEPTUAL MODELING Department of Computer Science & Engineering Arizona State University.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Mapping Constraints Keys.
Conceptual Modelling The Entity-Relationship (ER) Model The ER diagram Data Modelling.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
Entity Relationship Diagram
Entity Relationship Model
Entity-Relationship Model
ER MODEL Lecture 3.
Lecture3: Data Modeling Using the Entity-Relationship Model.
Entity – Relationship Model
Database Modeling using Entity Relationship Model (E-R Model)
Entity Relation Model Tingting Zhang.
ER MODELING Instructor: SAMIA ARSHAD
Presentation transcript:

Example BigHit Video Inc. wants to create an information system for online sales of movies in both DVD and videotape format. People will be allowed to register as customers of the online site and to update their stored information. Information must be maintained about customers’ shipping addresses, e-mail addresses and credit cards. In a single sale, customers will be allowed to purchase any quantity of videos. The items in a single sale will be shipped to a single address and will have a single credit card charge. A customer will be provided with a virtual shopping cart to store items to be purchased. As each item is selected, it is added to the shopping cart. When the customer finishes shopping, he will be directed to a checkout area where payment and shipping information is entered. Once the sale is complete, the customer will be sent a receipt by e-mail.

Example Entities: Customer (key: account , last name, first name, address, email, credit card, password) Movie (key: id, title, genre, length) Sale (key: id, cost, date, credit card) Shopping Cart (key: id, date)

Example Relationship Type Entity Class Cardinality Ratio Attibutes Purchases Customer Sale one-to-many Includes Movie many-to-many quantity Selects ShoppingCart

Data Modeling with E-R Diagram An Entity-Relationship (E-R) model is a high-level conceptual model E-R models are best described using graphical diagrams This model provides designers with an accurate and useful model that avoids confusion and is understandable by users

E-R model An E-R model includes Entity classes Attributes of each class Relationship types between classes Constraints Types of attributes Designation of key attributes Cardinalities of relationship types An E-R Model is typically represented graphically using an E-R diagram

E-R model E-R models cannot describe everything in the real-world application Not all information about the attributes appears in the E-R diagram. Most of the information is maintained in the data dictionary The process of designing the E-R diagram is iterative

E-R Diagrams: Entity Classes Entity classes are represented by rectangles with the name inside Attributes are represented by ovals. key attributes are underlined Multi-valued attributes are double-lined Derived attributes are dashed

Example of an entity class

Example

E-R diagrams: Relationships A relationship is represented by a rhombus (diamond) with the name inside The name of a relationship is a verb describing it Additional symbols of a relationship: Cardinality Optional/mandatory participation Attributes of a relationship

Example of a relationship

Example

Modeling relations as entity classes

Modeling relations as entity classes A relationship can be modeled as an entity class

Modeling relations as entity classes Note cardinalities and participation constraints A Rental entity cannot exist without being related to both a customer and a video Problem occurs because Rental has no key attribute

Weak and Strong entities A weak entity class is An entity class with no key of its own An entity class whose entities cannot exist without being related to other entities An identifying relationship type is A relationship type that determines the keys of the weak entities

Weak and Strong entities

More on Weak Entities and Relations An entity that is identified by its relationship to other entities is called a weak entity and its class a weak entity class Ssn Name EMPLOYEE 111111 1 DEPENDENTS_OF N DEPENDENT Name Relation Bdate

More on Weak Entities and Relations The stronger entity class is called the identifying or owner entity class The relationship that relates the weak entity class to its owner is called: identifying relationship A partial key of a weak entity is a set of attributes that uniquely identifies weak entities related to the same owner entity

Example Entities: Customer (key: account , last name, first name, address, email, credit card, password) Movie (key: id, title, genre, length) Sale (key: id, cost, date, credit card) Shopping Cart (key: id, date)

Example Relationship Type Entity Class Cardinality Ratio Attibutes Purchases Customer Sale one-to-many Includes Movie many-to-many quantity Selects ShoppingCart