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.

Slides:



Advertisements
Similar presentations
Banking Business Scenario
Advertisements

Chapter 6: Entity-Relationship Model
Chapter 6: Entity-Relationship Model (part I)
ER Modeling Case Studies
Entity-Relationship Model
Text-Book Chapters (7 and 8) Entity-Relationship Model
IELM 511: Information System design Introduction Part 1. ISD for well structured data – relational and other DBMS ISD for systems with non-uniformly structured.
CS157A Lecture 3 ER Diagram Prof. Sin-Min Lee Department of Computer Science San Jose State University.
Entity-Relationship Data Model CS 157A Professor Sin-Min Lee Student: Yen-Chu Pan.
IELM 511: Information System design Introduction Part 1. ISD for well structured data – relational and other DBMS ISD for systems with non-uniformly structured.
--The Entity Relationship Model(1)--1 The Entity Relationship Model.
Chapter 3: Relational Model
IELM 511: Information System design
©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.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Reduction of an E-R Schema to Tables A database which conforms to an E-R diagram can be represented.
Modeling & Designing the Database
Class Number – CS 304 Class Name - DBMS Instructor – Sanjay Madria Instructor – Sanjay Madria Lesson Title – ER Model.
Compe 301 ER - Model. Today DBMS Overview Data Modeling Going from conceptual requirements of a application to a concrete data model E/R Model.
Entity Relationship Model Chapter 6. Basic Elements of E-R Model Entity Object of the real world that stores data. Eg. Customer, State, Project, Supplier,
Data Modeling Using the Entity-Relationship Model
the Entity-Relationship Model
Database System Concepts, 5th Ed. Chapter 6: Entity-Relationship Model.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan Lecture-02,03 Introduction –Data Models Lectured by, Jesmin Akhter.
Entity-Relationship Model
CS411 Database Systems Kazuhiro Minami 02: The Entity-Relationship Model.
Chapter 3: Relational Model I Structure of Relational Databases Structure of Relational Databases Convert a ER Design to a Relational Database Convert.
Database System Concepts, 5 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 2: Relational.
ICOM 5016 – Introduction to Database Systems Lecture 5b Dr. Manuel Rodriguez Department of Electrical and Computer Engineering University of Puerto Rico,
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
Chapter 7 Database Design and The E–R Model. 2 Goals n Facilitate DB design and represent the overall logical structure of the DB. n Definition Entities.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts DB Schema Design: the Entity-Relationship Model What’s the use of the E-R model? Entity Sets.
Entity-Relationship Model Using High-Level Conceptual Data Models for Database Design Entity Types, Sets, Attributes and Keys Relationship Types, Sets,
Entity – Relationship Model (E-R Model)
CS 405G: Introduction to Database Systems Lecture 2 : Database Design I.
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.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
 Entity-relationship models (ERM) Entity-relationship models (ERM)  Simple E-R Diagram Simple E-R Diagram  Weak Entity Weak Entity  Strong Entity.
ITTelkom Entity Relationship Diagram (1) CS2343 Perancangan Basisdata Relasional.
UNIT_2 1 DATABASE MANAGEMENT SYSTEM[DBMS] [Unit: 2] Prepared By Lavlesh Pandit SPCE MCA, Visnagar.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan Lecture-03 Introduction –Data Models Lectured by, Jesmin Akhter.
ICOM 5016 – Introduction to Database Systems Lecture 5 Dr. Manuel Rodriguez Department of Electrical and Computer Engineering University of Puerto Rico,
Data Modeling Using the Entity-Relationship (ER) Data Model (Based on Chapter 3 in Fundamentals of Database Systems by Elmasri and Navathe, Ed. 3)
2.1 Chapter 2: Relational Model. 2.2 Chapter 2: Relational Model Structure of Relational Databases Fundamental Relational-Algebra-Operations Additional.
Entity-Relation Model. E-R Model The Entity-Relationship (ER) model was originally proposed by Peter in 1976 ER model is a conceptual data model that.
Database and Information Retrieval System
Data Modeling Using the Entity-Relationship (ER) Data Model.
Chapter 3: Data Modeling Using the Entity-Relationship (ER) Data Model
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
Data Modeling and the Entity-Relationship Model CS 475 Lecture Notes.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan Lecture-03 Introduction –Data Models Lectured by, Jesmin Akhter.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Mapping Constraints Keys.
Lecture 26 Enterprise Systems Development ( CSC447 ) COMSATS Islamabad Muhammad Usman, Assistant Professor.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
Chapter 2: Entity-Relationship Model
Entity Relationship (E-R) Model
COP Introduction to Database Structures
Entity- Relationship (ER) Model
Entity-Relationship Model
Entity Relationship Model
Entity-Relationship Model
Chapter 2: Entity-Relationship Model
Relational Database Design by Dr. S. Sridhar, Ph. D
Entity-Relationship Model
Introduction to Database
Chapter 6: Entity-Relationship Model
Relational Model.
Chapter 7: Entity-Relationship Model
Entity Relation Model Tingting Zhang.
Presentation transcript:

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 structured data Part III: (one out of) Basics of web-based IS (www, web2.0, …) Markup’s, HTML, XML Design tools for Info Sys: UML API’s for mobile apps Security, Cryptography IS product lifecycles Algorithm analysis, P, NP, NPC Info storage (modeling, normalization) Info retrieval (Relational algebra, Calculus, SQL) DB integrated API’s

Bank is organized in branches. Each branch is located in a particular city and identified by a unique name. The bank monitors the assets of each branch. Example: Banking system Customers are identified by their SSN (equiv to HKID). The bank stores each customer’s name and address. Customers may have accounts, and can take out loans. A customer may be associated with a particular banker, who may act as a loan officer of personal banker for that customer. Bank employees are also identified by SSN. The bank stores the Name, address, phone #, start day of employment of each employee, the name of all dependents of the employee, and the manager of the employee. The bank offers two types of accounts: savings and checking. Accounts can be held by more than one customer, and a customer may have many accounts. Each account has a unique account number. We store each account’s balance, and the most recent date when the account was accessed by each customer holding the account. Each savings account has an interest rate, and overdrafts are recorded for each checking account. A loan originates at a particular branch, and is held by one or more customers. Each loan has a unique number. For each loan, the bank stores the loan amount and the payments (date and amount). Payment numbers are not unique, but a payment number uniquely identifies a payment for a specific loan.

Information Storing: ER models Entity: a well defined real/abstract object in the domain of the IS. e.g. A particular customer of the bank; A specific loan; … Attributes: properties whose values describe the entity. e.g. Customer is described by attributes ‘SSN’, ‘Name’, ‘Address’ customer ssn name address

ER models: entity types Types of entities - Regular entity: one or a combination of attribute values uniquely identifies the entity in a set. - Weak entity: no combination of attribute values can uniquely identify the entity in a set. customer ssn name address Entity set: a set of entities of the same type. e.g. {[Jones, , Main, Harrison],..., [Adams, , Spring, Pittsfield]} loan-payment payment_no date amount

ER models: attribute types - Simple attribute The attribute has values that are atomic ssn - Composite attribute Attribute value is composed of 2 or more pieces - Single valued A given entity will only have one value for that attribute address town street - Multi-valued A unique entity may have multiple values for this attribute name - Derived attribute If the value of the attribute can be derived/computed from some other values dependent-name employment-length

ER models: relationships A relationship is an association between two or more entities. e.g. a customer Hayes borrows the loan L-15 Jones MainHarrison Smith NorthRye Hayes MainHarrison Williams NassauPrinceton Adams SpringPittsfield L L … L L Entity set: customer Entity set: loans Relationship set: borrows customer ssn name address loan loan_no amount borrows

Relationship sets: participation (aka: existence dependency) Jones MainHarrison Smith NorthRye Hayes MainHarrison Williams NassauPrinceton Adams SpringPittsfield L L … L L Entity set: customer Entity set: loans borrows Entity ‘Jones’ of type customer participates in relationship ‘borrows’ Total participation: if each entity of some set has at least one relationship of type ‘borrows’, then it has total participation in that relationship type. e.g. loans has total participation in ‘borrows’ Partial participation: if some entities of a set do not participate in a relation. e.g. customer has partial participation in ‘borrows’

Cardinality refers to how many of entities of a set can be related to to another entity in a relationship set. Relationship sets: cardinality customer ssn name address loan loan_no amount borrows n m m:n cardinality: Each customer may borrow more than one, say m, loans Each loan may be held by more than one, say n, customers. 1:n cardinality e.g.: Each employee can have at most one manager (manager is also an employee) employee manages n 1 1:1 cardinality e.g.: Each branch can have at most one manager, and each employee can manage at most 1 branch

ER models: Superkeys, Candidate Keys A set of attributes whose values can uniquely identify an entity of a given type is called a Superkey of that entity. e.g. {ssn} is a Superkey of entity customer. e.g. {name, address} is not a superkey of entity customer [Why?] customer ssn name address Notice: If K is a superkey, any superset of K is also a superkey. Any minimal superkey, K, is called a candidate key. minimal => removing any element from K will give subset that are not superkeys

ER models: Specializations Suppose all entities of a given set can be categorized further into a few subsets. e.g. entity account may be of type savings or checking. The subsets form categories, or specializations. account account_no balance isa savings interest-rate checking overdraft isa standard interest-rate gold interest-payment min-balance

ER diagram notations isa Regular entity Weak entity simple attribute multi-valued attribute derived attribute relationship participation total participation specialization

Bank ER

ER Diagrams: use Why bother to create a graphical image of the same data as text ? 1. Construction of ER model assists focusing on complete information 2. Easier to map ER model into relational model This relational model is a ‘good’ starting DB design.

References and Further Reading Silberschatz, Korth, Sudarshan, Database Systems Concepts, McGraw Hill Next: Relational model, Normalization