ER Modeling Case Studies

Slides:



Advertisements
Similar presentations
Banking Business Scenario
Advertisements

ER Model For a college DB
ER Modeling Case Studies
Exercise 1 Consider the ER diagram below. Assume that an employee may work in up to two departments or may not be assigned to any department. Assume that.
Convert ER to Relational Database Entity relation Entity relation Attributes attributes Attributes attributes Primary key primary key Primary key primary.
ER Modeling Case Studies
ER Modeling Case Studies
Database Modeling IT Key Ideas, Dynamic Database Systems, 2002 Chapter 8.
1 The Entity-Relationship Model Chapter 2. 2 Exercise  What can you say about policy of the bank from the ER diagram?  What can you say about the policy.
IELM 511: Information System design Introduction Part I. ISD for well structured data – relational and other DBMS Part II. ISD for systems with non-uniformly.
ENTITY RELATIONSHIP MODELLING
E/R Exercises – Part I April 16, 2017.
Design Principles: Faithfulness
Weak Entity Sets. Occasionally, entities of an entity set need “help” to identify them uniquely. Example. Crews might have a number and some description,
Weak Entity Sets. Occasionally, entities of an entity set need “help” to identify them uniquely. Entity set E is weak if in order to identify entities.
Database Management System (DBMS)
Data Modeling ISYS 464. Database Design Process Conceptual database design: –The process of creating a data model independent of implementation details.
The Entity-Relationship Data Model
Copyright © 2007 Ramez Elmasr and Shamkant B. Navathei Week 3 Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model.
Database Design Chapter 2. Goal of all Information Systems  To add value –Reduce costs –Increase sales or revenue –Provide a competitive advantage.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
Slides adapted from A. Silberschatz et al. Database System Concepts, 5th Ed. Entity-Relationship Model Database Management Systems I Alex Coman, Winter.
The (min,max) notation (1,1) (0,1) (1,N) (1,1). SUMMARY OF ER-DIAGRAM NOTATION FOR ER SCHEMAS Meaning ENTITY TYPE WEAK ENTITY TYPE RELATIONSHIP TYPE IDENTIFYING.
Data Model Examples USER SPECIFICATIONS.
Case study Lisa’s Bookstore IST210.
ER Modeling Case Studies
Data Modeling Using the Entity-Relationship Model
Chapter 2 Entity-Relationship Model Chapter 11 & 12 in Textbook.
Instructor :Huda Al-Omair
CS411 Database Systems Kazuhiro Minami 02: The Entity-Relationship Model.
Database Design Sections 6 & 7 Second Normal Form (2NF), Unique Identifiers (UID), Third Normal Form (3NF), Arcs, Hierarchies and Recursive relationships.
Principles of Database Systems With Internet and Java Applications Today’s Topic Chapter 2: Representing Information with Data Models The lecture notes.
Chapter 3: Relational Model  Structure of Relational Databases  Normal forms (chap. 7)  Reduction of an E-R Schema to Relational (Sect. 2.9)  Relational.
© Pearson Education Limited, Chapter 9 Logical database design – Step 1 Transparencies.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
Assignements. CSC343: Intro. to Databases2 Exercise 1 Superkeys: Candidate keys: Primary key:
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 4 Domain Classes.
CS370 Spring 2007 CS 370 Database Systems Lecture 4 Introduction to Database Design.
Database Application Design and Data Integrity AIMS 3710 R. Nakatsu.
ER-tutorial Conceptual Design
E-R to Relational - Basic
Slide Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model.
Weak Entity Sets A weak entity is an entity that cannot exist in a database unless another type of entity also exists in that database. Weak entity meets.
Data Modelling Using Entity-Relationship (ER) Model
Database Design – Lecture 6 Moving to a Logical Model.
MIS 3053 Database Design & Applications The University of Tulsa Professor: Akhilesh Bajaj ER Model Lecture 2 © Akhilesh Bajaj, 2000, 2002, 2003, 2004,
Introduction to Database Systems
Lecture on Database Management System
Data Modeling AND ER MODELS.
Example COMPANY Database
DATA SCIENCE MIS0855 | Spring 2016 Designing Data
Lecture # 11 & 12 (First Exam) Chapter # 5 The Relational Data Model and Relational Database Constraints Database Systems.
Entity/Relationship Modelling
Let try to identify the conectivity of these entity relationship
Assignements.
The Entity-Relationship Model
Entity-Relationship Model
Entity Relationship Model
Case Studies: Data Modeling
Entity-Relationship Model
ER Diagram Practical Example
ER Modeling Case Studies
Entity-Relationship Modeling "Extended"
Chapter Entity-Relationship Modeling & Enhanced Entity- Relationship Modeling.
ER Modeling Case Studies
ER Modeling Case Studies
Chapter Entity-Relationship Modeling & Enhanced Entity- Relationship Modeling.
Database Management system
Entity-Relationship Modeling "Extended"
Entity-Relationship Modeling "Extended"
Presentation transcript:

ER Modeling Case Studies Lab 4 ER Modeling Case Studies

BanksDatabase :ER Case Study Consider the following set of requirements for a Bank database that is used to keep track of Customer. Each bank has a unique name. Each branch has a number, name, address (number, street, city), and set of phones. Customer includes their name, set of address (P.O. Box, city, zip code, country), set of phones, and social security number. Accounts have numbers, types (e.g. saving, checking) and balance. Other branches might use the same designation for accounts. So to name an account uniquely, we need to give both the branch number to which this account belongs to and the account number. Not all bank customers must own accounts and a customer may have at most 5 accounts in the bank. An account must have only one customer. A customer may have many accounts in different branches.

Banks Database :ER Case Study Design an ER schema for this application, and draw an ER diagram for that schema. Specify key attributes of each entity type and structural constraints on each relationship type. Note any unspecified requirements, and make appropriate assumptions to make the specification complete.

Banks Database :ER Case Study Branch Branch_NO{PK} Name Address Number Street City Phone[1..*] 0..*  has Customer SSN {PK} Name Address [1..*] P.O Box Code City Country Phone [1..*] Account NO 1..1 1..1 Bank Name {PK} 0..* 1..1  Contains Reason of chasm trap : Note all customer should have an account .So we can not answer this question : List all customer available on a specific branch? Owns  0..5 Account Type Balance 0..*

Banks Database :ER Case Study To avoid chasm trap we add this relationship Branch Branch_NO{PK} Name Address Number Street City Phone[1..*] 0..*  has  has 1..* 0..* Customer SSN {PK} Name Address [1..*] P.O Box Code City Country Phone [1..*] Account NO 1..1 1..1 Bank Name {PK} 0..* 1..1  Contains Owns  0..5 Account Type Balance 0..*