2006-09-07 - SLIDE 1IS 257 – Fall 2006 Database Design: Conceptual Model and ER Diagramming Ray R. Larson University of California, Berkeley School of.

Slides:



Advertisements
Similar presentations
Database Design Process
Advertisements

Entity-Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Information Systems Planning and the Database Design Process
SLIDE 1IS 257 – Fall 2014 Database Design: Conceptual Model and ER Diagramming Ray R. Larson University of California, Berkeley School of.
SLIDE 1IS Fall 2002 Database Design: Object- Oriented Modeling University of California, Berkeley School of Information Management and.
SLIDE 1IS 202 – FALL 2005 Prof. Ray Larson UC Berkeley SIMS SIMS 202: Information Organization and Retrieval Normalization & The Relational.
Database Design University of California, Berkeley
Chapter 2: The Database Development Process
9/6/2001Database Management – Fall 2000 – R. Larson Information Systems Planning and the Database Design Process University of California, Berkeley School.
Oct 31, 2000Database Management -- Fall R. Larson Database Management: Introduction to Terms and Concepts University of California, Berkeley School.
SLIDE 1IS 202 – FALL 2002 Prof. Ray Larson & Prof. Marc Davis UC Berkeley SIMS Tuesday and Thursday 10:30 am - 12:00 pm Fall 2002
SLIDE 1IS Fall 2002 Database Design: Conceptual Model and ER Diagramming University of California, Berkeley School of Information Management.
SLIDE 1IS 257 – Fall 2004 Database Design: Conceptual Model and ER Diagramming Ray R. Larson University of California, Berkeley School of.
SLIDE 1IS 257 – Fall 2004 Database Design: Logical Model Design & Access DB Creation University of California, Berkeley School of Information.
9/7/1999Information Organization and Retrieval Database Design: Conceptual Model and ER Diagramming University of California, Berkeley School of Information.
11/28/2000Information Organization and Retrieval Introduction to Databases and Database Design University of California, Berkeley School of Information.
SLIDE 1IS 257 – Fall 2010 Database Design: Conceptual Model and ER Diagramming Ray R. Larson University of California, Berkeley School of.
SLIDE 1IS 257 – Fall 2009 Database Design: Conceptual Model (cont.) and UML University of California, Berkeley School of Information IS 257:
Concepts of Database Management Sixth Edition
SLIDE 1IS 257 – Fall 2005 Database Design: Conceptual and Logical Model Design University of California, Berkeley School of Information Management.
SLIDE 1IS Fall 2010 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley School.
SLIDE 1IS Fall 2002 Database Life Cycle and Introduction to Access University of California, Berkeley School of Information Management.
SLIDE 1IS Fall 2002 Information Systems Planning and the Database Design Process University of California, Berkeley School of Information.
8/28/97Information Organization and Retrieval Intergalactic Courier Service: Database and Application Design University of California, Berkeley School.
Database Design: Logical Model and Normalization
Callie’s Birthday SLIDE 1IS 202 – FALL 2004 Prof. Ray Larson & Prof. Marc Davis UC Berkeley SIMS Tuesday and Thursday 10:30 am - 12:00 pm.
SLIDE 1IS 257 – Fall 2006 Database Design: Conceptual Model (cont.) and UML University of California, Berkeley School of Information IS 257:
SLIDE 1IS 202 – FALL 2005 Prof. Ray Larson UC Berkeley SIMS SIMS 202: Information Organization and Retrieval Introduction to Database Design.
SLIDE 1IS 257 – Fall 2005 Database Life Cycle and Introduction to Access University of California, Berkeley School of Information Management.
SLIDE 1IS 257 – Fall 2004 Database Design: Normalization and The Relational Model University of California, Berkeley School of Information.
SLIDE 1IS 257 – Fall 2010 Database Design: Conceptual Model (cont.) and UML University of California, Berkeley School of Information IS 257:
SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.
© 2005 by Prentice Hall 1 Chapter 2: The Database Development Process Modern Database Management 7 th Edition George Lamperti.
SLIDE 1IS 257 – Spring 2004 Database Design: Conceptual Model and ER Diagramming Ray R. Larson University of California, Berkeley School of.
SLIDE 1IS 202 – FALL 2003 Prof. Ray Larson & Prof. Marc Davis UC Berkeley SIMS Tuesday and Thursday 10:30 am - 12:00 pm Fall 2003
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
8/28/97Information Organization and Retrieval Files and Databases University of California, Berkeley School of Information Management and Systems SIMS.
Concepts of Database Management Seventh Edition Chapter 1 Introduction to Database Management.
8/28/97Information Organization and Retrieval Database Design University of California, Berkeley School of Information Management and Systems SIMS 202:
SLIDE 1IS Fall 2006 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley School.
SLIDE 1IS 257 – Spring 2004 Database Design: Object- Oriented Modeling University of California, Berkeley School of Information Management.
Information Systems Planning and the Database Design Process
Modern Systems Analysis and Design Third Edition
6 Systems Analysis and Design in a Changing World, Fourth Edition.
Chapter 6: The Traditional Approach to Requirements
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
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.
Chapter 1: The Database Environment and Development Process
Concepts of Database Management Seventh Edition
Concepts of Database Management, Fifth Edition Chapter 1: Introduction to Database Management.
ITEC224 Database Programming
Database Systems: Design, Implementation, and Management Ninth Edition
9/14/2012ISC329 Isabelle Bichindaritz1 Database System Life Cycle.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Concepts of Database Management, Fifth Edition Chapter 1: Introduction to Database Management.
Architecture for a Database System
9/7/1999Information Organization and Retrieval Database Design: Object- Oriented Modeling University of California, Berkeley School of Information Management.
DataBase Management Systems Introduction to Database Technology EAK 362/2 MIS LECTURE 4 PART 1.
Information Systems Engineering. Lecture Outline Information Systems Architecture Information System Architecture components Information Engineering Phases.
1 CSE 2337 Introduction to Data Management Textbook: Chapter 1.
Advanced Accounting Information Systems Day 7 Database Modeling.
Concepts in Enterprise Resource Planning Fourth Edition
Concepts of Database Management Seventh Edition Chapter 1 Introduction to Database Management.
6 Systems Analysis and Design in a Changing World, Fourth Edition.
8/31/99Database Management -- Fall R. Larson Database Models and Introduction to Access University of California, Berkeley School of Information.
Database Systems: Design, Implementation, and Management Tenth Edition
Database Design: Conceptual Model (cont.), UML and The Logical Model
Database Design: Conceptual Model and ER Diagramming
Database Design Hacettepe University
Presentation transcript:

SLIDE 1IS 257 – Fall 2006 Database Design: Conceptual Model and ER Diagramming Ray R. Larson University of California, Berkeley School of Information IS 257: Database Management

SLIDE 2IS 257 – Fall 2006 Announcements New version of web site: – –No more frames! –RSS feed! - Thanks to Yuri for converting the old site

SLIDE 3IS 257 – Fall 2006 Lecture Outline Information Systems Planning –Information Systems Architecture –Information Engineering Database Design ER Diagrams Developing the Conceptual Model

SLIDE 4IS 257 – Fall 2006 Lecture Outline Information Systems Planning –Information Systems Architecture –Information Engineering Database Design ER Diagrams Developing the Conceptual Model

SLIDE 5IS 257 – Fall 2006 Information Systems Planning Scope of IS is now the entire organization Sometimes called “enterprise-wide” computing Problem: isolated groups in an organization start their own databases and it becomes impossible to find out who has what information, where there are overlaps, and to assess the accuracy of the information

SLIDE 6IS 257 – Fall 2006 Information Systems Planning To support enterprise-wide computing, there must be enterprise-wide information planning One framework for thinking about and planning for enterprise-wide computing is an Information Systems Architecture or ISA Most organizations do NOT have such an architecture

SLIDE 7IS 257 – Fall 2006 Information Systems Architecture An ISA is a “conceptual blueprint or plan that expresses the desired future structure for information systems in an organization” It provides a “context within which managers throughout the organization can make consistent decisions concerning their information systems” –Quotes from McFadden (Modern Database Management, 4 th edition), Ch. 3

SLIDE 8IS 257 – Fall 2006 Information Systems Architecture Benefits of ISA: –“Provides a basis for strategic planning of IS –Provides a basis for communicating with top management and a context for budget decisions concerning IS –Provides a unifying concept for the various stakeholders in information systems. –Communicates the overall direction for information technology and a context for decisions in this area –Helps achieve information integration when systems are distributed (increasing important in a global economy) –Provides a basis for evaluating technology options (for example, downsizing and distributed processing)” Read Chapter 2 in Hoffer…

SLIDE 9IS 257 – Fall 2006 Information Systems Architecture Zachman ISA Framework components –Data The “what” of the information system –Process The “how” of the information system –Network The “where” of the information system –People Who performs processes and are the source and receiver of data and information. –Events and Points in time When processes are performed –Reasons For events and rules that govern processing

SLIDE 10IS 257 – Fall 2006 Zachman Framework

SLIDE 11IS 257 – Fall 2006 Information Engineering A formal methodology that is used to create and maintain information systems Starts with the Business Model and works in a Top-Down fashion to build supporting data models and process models for that business model

SLIDE 12IS 257 – Fall 2006 Information Engineering Planning Design Analysis Implementation 1. Identify Strategic Planning Factors a. Goals b. Critical Success Factors c. Problem Areas 2. Identify Corporate Planning Objects a. Org. Units b. Locations c. Business Functions d. Entity types 3. Develop Enterprise Model a. Function decomposition b. Entity-Relationship Diagram c. Planning Matrices 1. Develop Conceptual Model (detailed E-R Diagram) 2. Develop Process Models (data flow diagrams) 1. Design Databases (normalized relations) 2. Design Processes a. Action Diagrams b. User Interfaces: menus, screens, reports 1. Build database definitions (tables, indexes, etc.) 2. Generate Applications (program code, control blocks, etc.)

SLIDE 13IS 257 – Fall 2006 Focus In this course we will focus on the design aspects for databases We will NOT focus on interaction design or interface design (That is covered in other courses)

SLIDE 14IS 257 – Fall 2006 Lecture Outline Information Systems Planning –Information Systems Architecture –Information Engineering Database Design ER Diagrams Developing the Conceptual Model

SLIDE 15IS 257 – Fall 2006 Database Design Process Conceptual Model Logical Model External Model Conceptual requirements Conceptual requirements Conceptual requirements Conceptual requirements Application 1 Application 2Application 3Application 4 Application 2 Application 3 Application 4 External Model External Model External Model Internal Model

SLIDE 16IS 257 – Fall 2006 Stages in Database Design Requirements formulation and analysis Conceptual Design -- Conceptual Model Implementation Design -- Logical Model Physical Design --Physical Model

SLIDE 17IS 257 – Fall 2006 Database Design Process Requirements formulation and analysis –Purpose: Identify and describe the data that are used by the organization –Results: Metadata identified, Data Dictionary, Conceptual Model-- ER diagram

SLIDE 18IS 257 – Fall 2006 Database Design Process Requirements Formulation and analysis –Systems Analysis Process Examine all of the information sources used in existing applications Identify the characteristics of each data element –numeric –text –date/time –etc. Examine the tasks carried out using the information Examine results or reports created using the information

SLIDE 19IS 257 – Fall 2006 Database Design Process Conceptual Model –Merge the collective needs of all applications –Determine what Entities are being used Some object about which information is to maintained –What are the Attributes of those entities? Properties or characteristics of the entity What attributes uniquely identify the entity –What are the Relationships between entities How the entities interact with each other?

SLIDE 20IS 257 – Fall 2006 Database Design Process Logical Model –How is each entity and relationship represented in the Data Model of the DBMS Hierarchic? Network? Relational? Object-Oriented?

SLIDE 21IS 257 – Fall 2006 Database Design Process Physical (AKA Internal) Model –Choices of index file structure –Choices of data storage formats –Choices of disk layout

SLIDE 22IS 257 – Fall 2006 Database Design Process External Model –User views of the integrated database –Making the old (or updated) applications work with the new database design

SLIDE 23IS 257 – Fall 2006 Lecture Outline Review –Information Systems Planning –Information Systems Architecture –Information Engineering Database Design ER Diagrams Developing the Conceptual Model

SLIDE 24IS 257 – Fall 2006 Entity An Entity is an object in the real world (or even imaginary worlds) about which we want or need to maintain information –Persons (e.g.: customers in a business, employees, authors) –Things (e.g.: purchase orders, meetings, parts, companies) Employee

SLIDE 25IS 257 – Fall 2006 Attributes Attributes are the significant properties or characteristics of an entity that help identify it and provide the information needed to interact with it or use it. (This is the Metadata for the entities.) Employee Last Middle First Name SSN Age Birthdate Projects

SLIDE 26IS 257 – Fall 2006 Relationships Relationships are the associations between entities. They can involve one or more entities and belong to particular relationship types

SLIDE 27IS 257 – Fall 2006 Relationships Class Attends Student Part Supplies project parts Supplier Project

SLIDE 28IS 257 – Fall 2006 Types of Relationships Concerned only with cardinality of relationship Truck Assigned EmployeeProject Assigned EmployeeProject Assigned Employee 11 n n 1 m Chen ER notation

SLIDE 29IS 257 – Fall 2006 Other Notations Truck Assigned EmployeeProject Assigned EmployeeProject Assigned Employee “Crow’s Foot”

SLIDE 30IS 257 – Fall 2006 Other Notations Truck Assigned EmployeeProject Assigned EmployeeProject Assigned Employee IDEFIX Notation

SLIDE 31IS 257 – Fall 2006 More Complex Relationships Project Evaluation Employee Manager 1/n/n 1/1/1 n/n/1 Project Assigned Employee 4(2-10) 1 SSNProjectDate Manages Employee Manages Is Managed By 1 n

SLIDE 32IS 257 – Fall 2006 Weak Entities Owe existence entirely to another entity Order-line Contains Order Invoice # Part# Rep# QuantityInvoice#

SLIDE 33IS 257 – Fall 2006 Supertype and Subtype Entities Clerk Is one of Sales-rep Invoice Other Employee Sold Manages

SLIDE 34IS 257 – Fall 2006 Many to Many Relationships Employee Project Is Assigned Project Assignment Assigned SSN Proj# SSN Proj# Hours

SLIDE 35IS 257 – Fall 2006 Lecture Outline Review –Information Systems Planning –Information Systems Architecture –Information Engineering Database Design ER Diagrams Developing the Conceptual Model

SLIDE 36IS 257 – Fall 2006 Developing a Conceptual Model Overall view of the database that integrates all the needed information discovered during the requirements analysis. Elements of the Conceptual Model are represented by diagrams, Entity-Relationship or ER Diagrams, that show the meanings and relationships of those elements independent of any particular database systems or implementation details. Can also be represented using other modeling tools (such as UML)

SLIDE 37IS 257 – Fall 2006 Developing a Conceptual Model Building the Conceptual Model for the Diveshop database

SLIDE 38IS 257 – Fall 2006 Developing a Conceptual Model We will look at a small business -- a diveshop that offers diving adventure vacations Assume that we have done interviews with the business and found out the following information about the forms used and types of information kept in files and used for business operations...

SLIDE 39IS 257 – Fall 2006 Primary Business Operations The shop takes orders from customers for dive vacations. It ships information about the dive vacation to the customers. It rents diving equipment for the divers going on the trips (these may include additional people other than the customer) It bills the customer for the vacation and for equipment rental or sales.

SLIDE 40IS 257 – Fall 2006 Business Operations (cont.) It arranges sub-trips to particular dive sites at the primary location –NOTE: This needs expanding – charter boats, divemasters, local dive companies It provides information about the features of various sites to help customers choose their destinations. –Features include sea life found at the location and shipwrecks

SLIDE 41IS 257 – Fall 2006 Business Operations (cont.) Each dive order (or sale or trip) is on an invoice to one customer. –Invoices contain: Line items for each type of equipment ordered, Total amount due for the invoice, Customer information: –Name, address, phone, credit card info. Note: could be expanded with particular charter dates and time, dive boats, etc. Information must be kept on inventory of dive equipment. There are multiple types of dive equipment: –The prices charged for sale or rental are maintained.

SLIDE 42IS 257 – Fall 2006 Business Operations (cont.) Destination information includes: –Name of the destination –information about the location (accomodations, night life, travel cost, average temperatures for different times of the year Destinations have associated dive sites. Dive Sites have associated features – Sea life –Shipwrecks –Note: could be expanded to include the boats, etc that go to specific sites

SLIDE 43IS 257 – Fall 2006 Business Operations (cont.) One record is kept for each order by a customer and will include the method of payment, total price, and location information. (I.e. Customers may have multiple orders) The company needs to know how an order is to be shipped. The shop has to keep track of what equipment is on-hand and when replacements or additional equipment is needed

SLIDE 44IS 257 – Fall 2006 Entities Customer Dive Order Line item Shipping information Dive Equipment/ Stock/Inventory Dive Locations Dive Sites Sea Life Shipwrecks

SLIDE 45IS 257 – Fall 2006 Diveshop Entities: DIVECUST Name Customer no Street State/ProvCity ZIP/Postal Code Country First Contact Phone DiveCust

SLIDE 46IS 257 – Fall 2006 Diveshop Entities: DIVEORDS Customer No Order no Sale Date Ship Via Destination CCExpDate CCNumber Payment Method DiveOrds No of People Vacation Cost Return Date Depart Date

SLIDE 47IS 257 – Fall 2006 Diveshop Entities: DIVEITEM Item no Order no Rental/ Sale Qty Line Note DiveItem

SLIDE 48IS 257 – Fall 2006 Diveshop Entities: SHIPVIA Ship Via Ship Cost ShipVia

SLIDE 49IS 257 – Fall 2006 Diveshop Entities: DIVESTOK Description Item No Equipment Class Reorder Point On HandCost Sale Price DiveStok Rental Price

SLIDE 50IS 257 – Fall 2006 Diveshop Entities: DEST Destination name Destination no Avg Temp (F) Spring Temp (F) Avg Temp (C) Summer Temp (C) Summer Temp (F) Travel Cost Winter Temp (C) Fall Temp (F) Fall Temp (C) Dest Winter Temp (F) Accommodations Body of Water Night Life Spring Temp (C)

SLIDE 51IS 257 – Fall 2006 Diveshop Entities: SITES Destination no Site no Site Name Site Notes Site Highlight Distance From Town (M) Distance From Town (Km) Skill Level Visibility(ft) Depth (m) Depth (ft) Sites Visibility (m) Current

SLIDE 52IS 257 – Fall 2006 Diveshop Entities: BIOSITE Species No Site No BioSite

SLIDE 53IS 257 – Fall 2006 Diveshop Entities: BIOLIFE Category Species no Common Name Length (cm) Species Name Length (in) Notes external Graphic external BioLife

SLIDE 54IS 257 – Fall 2006 Diveshop Entities: SHIPWRCK Site no Ship Name Category InterestTypeTonnage Length (ft) Beam (m) Beam (ft) Length (m) Shipwrck Cause Comments external Date Sunk Passengers/ Crew Graphic external Survivors Condition

SLIDE 55IS 257 – Fall 2006 Functional areas Ordering Inventory Supplies Shipping Billing Location/Site Selection –We will concentrate on Ordering and Location/Site Selection (these are joined tasks)

SLIDE 56IS 257 – Fall 2006 Ordering Orders (DIVORDS) Customer (DIVECUST) Customers place Orders Each Order needs Customer information

SLIDE 57IS 257 – Fall 2006 Ordering DiveOrds Orders DiveCust Customer No ship ShipVia Order No Ship Via DiveItem Repeating attribute Customer No

SLIDE 58IS 257 – Fall 2006 Ordering Normalization DiveCust Orders Customer No DiveOrds Ship ShipVia Order No Ship Via DiveItem Contains Item No QtyOrder No Customer No Rental/sale

SLIDE 59IS 257 – Fall 2006 Details of DiveItem DiveStok Supplies Supplier Company# Has DiveItem Item No On Hand Sale Price Order No mn We’re ignoring this part...

SLIDE 60IS 257 – Fall 2006 Ordering: Full ER Customer No ShipVia Dest ShipVia DiveStok DiveItem DiveOrds DiveCust Customer No ShipVia Order No Order No Item No Item No Destination Name Destination no n n n n n

SLIDE 61IS 257 – Fall 2006 Location/Site Selection Dest Going to? DiveOrds Destination No Destination Name Destination

SLIDE 62IS 257 – Fall 2006 Destination/ Sites Dest Sites DiveOrds Customer No Order No Destination Name Destination Site No Destination no Destination no 1 1 n n

SLIDE 63IS 257 – Fall 2006 Sites and Sea Life 1 BioLife Sites Site No Destination no Multiple occurrences of sea life...

SLIDE 64IS 257 – Fall 2006 Diveshop ER diagram: BioSite Species No Site No BioSite

SLIDE 65IS 257 – Fall 2006 Sites and Sea Life 2 Sites BioSite BioLife Species No Site No Destination no Species No 1 1 n n

SLIDE 66IS 257 – Fall 2006 Sites and Shipwrecks Sites ShipWrck Site No Destination no Site No 1/n 1

SLIDE 67IS 257 – Fall 2006 DiveShop ER Diagram Customer No ShipVia Dest Sites BioSite ShipVia ShipWrck BioLife DiveStok DiveItem DiveOrds DiveCust Customer No ShipVia Order No Order No Item No Item No Destination Name Destination Species No Site No Destination no Site No Destination no Species No Site No /n 1 1n n n n n n n n 1

SLIDE 68IS 257 – Fall 2006 What must be calculated? Total price for equipment rental? Total price for equipment sale? Total price of an order? –Vacation price –Equipment (rental or sale) –Shipping

SLIDE 69IS 257 – Fall 2006 What is Missing?? Not really an “enterprise-wide” database –No personnel… Sales people Dive masters Boat captains and crew payroll –No Local arrangements… Dive Boats –Charter bookings? Hotels? –Suppliers/Wholesalers for dive equipment Orders for new/replacement equipment –No history (only current or last order)

SLIDE 70IS 257 – Fall 2006 Next Week More on… –Personal database projects –ER modelling –Designing the Conceptual Model for your personal database projects –Moving from the Conceptual Model to the Logical Model

SLIDE 71IS 257 – Fall 2006 Assignment 2 Due Tuesday Sept. 26 Personal Database Project Design The following information should be turned in for the preliminary design of your personal database project. 1.A written description of the data you will be using for the database, and what uses you might expect the database to have. (2-4 pages) 2.A preliminary data dictionary for the entities and attributes and format of the data elements of the database. You should have at least 5 entities with some logical connections between them. The data dictionary consists of all of the attributes that you have identified for each entity, along with indication of whether the attribute is a primary key (or part of a primary key), and what format the data will be (e.g.: text, decimal number, integer, etc.) 3.Produce an entity-relationship diagram of the database OR a UML diagram. These will be preliminary design specifications, so do not feel that you must follow everything that you describe here in the final database design. The report should be printed.