Callie’s Birthday 2004-10-05 - SLIDE 1IS 202 – FALL 2004 Prof. Ray Larson & Prof. Marc Davis UC Berkeley SIMS Tuesday and Thursday 10:30 am - 12:00 pm.

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

Entity-Relationship (ER) Modeling
Introduction to Database How to Organize Information?  What are the different structures we use to organize information?  What are the organizing principles?
1 1 File Systems and Databases Chapter 1 The Worlds of Database Systems Prof. Sin-Min Lee Dept. of Computer Science.
Introduction to Databases
Information Systems Planning and the Database Design Process
SLIDE 1IS Fall 2002 Database Management: Introduction University of California, Berkeley School of Information Management and Systems.
Database Design University of California, Berkeley
SLIDE 1IS 257 – Fall 2006 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257:
ETEC 100 Information Technology
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.
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.
File Systems and Databases
SLIDE 1IS Fall 2010 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley School.
1 Introduction The Database Environment. 2 Web Links Google General Database Search Database News Access Forums Google Database Books O’Reilly Books Oracle.
SLIDE 1IS Fall 2002 Database Life Cycle and Introduction to Access University of California, Berkeley School of Information Management.
8/29/2000Database Management -- Fall R. Larson Database Management: Introduction University of California, Berkeley School of Information Management.
Ch1: File Systems and Databases Hachim Haddouti
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
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.
8/28/2001Database Management -- Fall R. Larson Database Management: Introduction University of California, Berkeley School of Information Management.
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 2009 Database Management: Introduction Ray R. Larson 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.
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.
Chapter 1 An Overview of Database Management. 1-2 Topics in this Chapter What is a Database System? What is a Database? Why Database? Data Independence.
Databases and Database Management Systems
1 1 File Systems and Databases Chapter 1 The Worlds of Database Systems Prof. Sin-Min Lee Dept. of Computer Science.
8/28/97Information Organization and Retrieval Database Design University of California, Berkeley School of Information Management and Systems SIMS 202:
SLIDE 1IS 257 – Spring 2004 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information Management.
SLIDE 1IS Fall 2006 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley School.
Chapter 4 Database Management Systems. Chapter 4Slide 2 What is a Database Management System (DBMS)?  Database An organized collection of related data.
SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database.
Information Systems Planning and the Database Design Process
10/5/1999Database Management -- R. Larson Data Administration and Database Administration University of California, Berkeley School of Information Management.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Chapter 1 Database Systems. Good decisions require good information derived from raw facts Data is managed most efficiently when stored in a database.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Database Systems COMSATS INSTITUTE OF INFORMATION TECHNOLOGY, VEHARI.
1 Advanced Computer Programming Databases. Overview What is a database? Database Basics Database Components Data Models Normalization Database Design.
Module Title? DBMS Introduction to Database Management System.
Web-Enabled Decision Support Systems
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
9/14/2012ISC329 Isabelle Bichindaritz1 Database System Life Cycle.
Architecture for a Database System
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
1/26/2004TCSS545A Isabelle Bichindaritz1 Database Management Systems Design Methodology.
File Systems and Databases Lecture 1. Files and Databases File: A collection of records or documents dealing with one organization, person, area or subject.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
1 CS 430 Database Theory Winter 2005 Lecture 2: General Concepts.
SLIDE 1IS 202 – FALL 2006 Prof. Ray Larson UC Berkeley SIMS SIMS 202: Information Organization and Retrieval Introduction to Database Design.
Database Concepts Track 3: Managing Information using Database.
Copyright (c) 2014 Pearson Education, Inc. Introduction to DBMS.
Database Management: Introduction
Database Management:.
Chapter 1 The Worlds of Database Systems
Lecture 1 File Systems and Databases.
Database Design Hacettepe University
Presentation transcript:

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 Fall SIMS 202: Information Organization and Retrieval Lecture 11: Intro to Database Design

Callie’s Birthday SLIDE 2IS 202 – FALL 2004 Lecture Overview Review –Evaluation exercise Databases and Database Design Database Life Cycle ER Diagrams Discussion Next Time/Readings

Callie’s Birthday SLIDE 3IS 202 – FALL 2004 Lecture Overview Review –Evaluation exercise Databases and Database Design Database Life Cycle ER Diagrams Discussion Next Time/Readings

Callie’s Birthday SLIDE 4IS 202 – FALL 2004 What is a Database?

Callie’s Birthday SLIDE 5IS 202 – FALL 2004 Files and Databases File: A collection of records or documents dealing with one organization, person, area or subject (Rowley) –Manual (paper) files –Computer files Database: A collection of similar records with relationships between the records (Rowley) –Bibliographic, statistical, business data, images, etc.

Callie’s Birthday SLIDE 6IS 202 – FALL 2004 Database A Database is a collection of stored operational data used by the application systems of some particular enterprise (C.J. Date) –Paper “Databases” Still contain a large portion of the world’s knowledge –File-Based Data Processing Systems Early batch processing of (primarily) business data –Database Management Systems (DBMS)

Callie’s Birthday SLIDE 7IS 202 – FALL 2004 Why DBMS? History –50’s and 60’s all applications were custom built for particular needs –File based –Many similar/duplicative applications dealing with collections of business data –Early DBMS were extensions of programming languages – E.F. Codd and the Relational Model – Ashton-Tate and first Microcomputer DBMS

Callie’s Birthday SLIDE 8IS 202 – FALL 2004 File Based Systems Naughty Nice Just what asked for Coal Estimation Delivery List Application File Toys Addresses Toys

Callie’s Birthday SLIDE 9IS 202 – FALL 2004 From File Systems to DBMS Problems with file processing systems –Inconsistent data –Inflexibility –Limited data sharing –Poor enforcement of standards –Excessive program maintenance

Callie’s Birthday SLIDE 10IS 202 – FALL 2004 DBMS Benefits Minimal data redundancy Consistency of data Integration of data Sharing of data Ease of application development Uniform security, privacy, and integrity controls Data accessibility and responsiveness Data independence Reduced program maintenance

Callie’s Birthday SLIDE 11IS 202 – FALL 2004 Terms and Concepts Data independence –Physical representation and location of data and the use of that data are separated The application doesn’t need to know how or where the database has stored the data, but just how to ask for it Moving a database from one DBMS to another should not have a material effect on application program Recoding, adding fields, etc. in the database should not affect applications

Callie’s Birthday SLIDE 12IS 202 – FALL 2004 Database Environment CASE Tools DBMS User Interface Application Programs Repository Database

Callie’s Birthday SLIDE 13IS 202 – FALL 2004 Database Components DBMS =============== Design tools Table Creation Form Creation Query Creation Report Creation Procedural language compiler (4GL) ============= Run time Form processor Query processor Report Writer Language Run time User Interface Applications Application Programs Database Database contains: User’s Data Metadata Indexes Application Metadata

Callie’s Birthday SLIDE 14IS 202 – FALL 2004 Types of Database Systems PC databases Centralized database Client/server databases Distributed databases Database models

Callie’s Birthday SLIDE 15IS 202 – FALL 2004 PC Databases E.g.: Access FoxPro Dbase Etc.

Callie’s Birthday SLIDE 16IS 202 – FALL 2004 Centralized Databases Central Computer

Callie’s Birthday SLIDE 17IS 202 – FALL 2004 Client Server Databases Network Client Database Server

Callie’s Birthday SLIDE 18IS 202 – FALL 2004 Distributed Databases computer Location A Location C Location B Homogeneous Databases

Callie’s Birthday SLIDE 19IS 202 – FALL 2004 Distributed Databases Local Network Database Server Client Comm Server Remote Comp. Remote Comp. Heterogeneous Or Federated Databases

Callie’s Birthday SLIDE 20IS 202 – FALL 2004 Terms and Concepts A “database application” is an application program (or set of related programs) that is used to perform a series of database activities: –Create Add new data to the database –Read Read current data from the database –Update Update or modify current database data –Delete Remove current On behalf of database users

Callie’s Birthday SLIDE 21IS 202 – FALL 2004 Terms and Concepts Enterprise –Organization Entity –Person, Place, Thing, Event, Concept... Attributes –Data elements (facts) about some entity –Also sometimes called fields or items or domains Data values –Instances of a particular attribute for a particular entity

Callie’s Birthday SLIDE 22IS 202 – FALL 2004 Terms and Concepts Key –An attribute or set of attributes used to identify or locate records in a file Primary Key –An attribute or set of attributes that uniquely identifies each record in a file

Callie’s Birthday SLIDE 23IS 202 – FALL 2004 Terms and Concepts Models –(1) Levels or views of the Database Conceptual, logical, physical –(2) DBMS types Relational, Hierarchic, Network, Object-Oriented, Object-Relational

Callie’s Birthday SLIDE 24IS 202 – FALL 2004 Models (1) 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 More later on this…

Callie’s Birthday SLIDE 25IS 202 – FALL 2004 Data Models(2): History Hierarchical Model (1960’s and 1970’s) –Similar to data structures in programming languages Books (id, title) PublisherSubjects Authors (first, last)

Callie’s Birthday SLIDE 26IS 202 – FALL 2004 Data Models(2): History Network Model (1970’s) –Provides for single entries of data and navigational “links” through chains of data. SubjectsBooks Authors Publishers

Callie’s Birthday SLIDE 27IS 202 – FALL 2004 Data Models(2): History Relational Model (1980’s) –Provides a conceptually simple model for data as relations (typically considered “tables”) with all data visible

Callie’s Birthday SLIDE 28IS 202 – FALL 2004 Data Models(2): History Object Oriented Data Model (1990’s) –Encapsulates data and operations as “Objects” Books (id, title) PublisherSubjects Authors (first, last)

Callie’s Birthday SLIDE 29IS 202 – FALL 2004 Data Models(2): History Object-Relational Model (1990’s) –Combines the well-known properties of the Relational Model with such OO features as: User-defined datatypes User-defined functions Inheritance and sub-classing All of the major enterprise DBMS systems are now Object-Relational or incorporate Object-Relational features

Callie’s Birthday SLIDE 30IS 202 – FALL 2004 Lecture Overview Review –MediaStreams Databases and Database Design Database Life Cycle ER Diagrams Discussion Next Time/Readings

Callie’s Birthday SLIDE 31IS 202 – FALL 2004 Database System Life Cycle Growth, Change, & Maintenance 6 Operations 5 Integration 4 Design 1 Conversion 3 Physical Creation 2

Callie’s Birthday SLIDE 32IS 202 – FALL 2004 Design Determination of the needs of the organization Development of the Conceptual Model of the database –Typically using Entity-Relationship diagramming techniques Construction of a Data Dictionary Development of the Logical Model

Callie’s Birthday SLIDE 33IS 202 – FALL 2004 Physical Creation Development of the Physical Model of the Database –Data formats and types –Determination of indexes, etc. Load a prototype database and test Determine and implement security, privacy and access controls Determine and implement integrity constraints

Callie’s Birthday SLIDE 34IS 202 – FALL 2004 Conversion Convert existing data sets and applications to use the new database –May need programs, conversion utilities to convert old data to new formats

Callie’s Birthday SLIDE 35IS 202 – FALL 2004 Integration Overlaps with Phase 3 Integration of converted applications and new applications into the new database

Callie’s Birthday SLIDE 36IS 202 – FALL 2004 Operations All applications run full-scale Privacy, security, access control must be in place Recovery and Backup procedures must be established and used

Callie’s Birthday SLIDE 37IS 202 – FALL 2004 Growth, Change, and Maintenance Change is a way of life –Applications, data requirements, reports, etc. will all change as new needs and requirements are found –The Database and applications and will need to be modified to meet the needs of changes

Callie’s Birthday SLIDE 38IS 202 – FALL 2004 Another View of the Life Cycle Operations 5 Conversion 3 Physical Creation 2 Growth, Change 6 Integration 4 Design 1

Callie’s Birthday SLIDE 39IS 202 – FALL 2004 Lecture Overview Review –MediaStreams Databases and Database Design Database Life Cycle ER Diagrams Discussion Next Time/Readings

Callie’s Birthday SLIDE 40IS 202 – FALL 2004 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

Callie’s Birthday SLIDE 41IS 202 – FALL 2004 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

Callie’s Birthday SLIDE 42IS 202 – FALL 2004 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

Callie’s Birthday SLIDE 43IS 202 – FALL 2004 Relationships Relationships are the associations between entities They can involve one or more entities and belong to particular relationship types

Callie’s Birthday SLIDE 44IS 202 – FALL 2004 Relationships Class Attends Student Part Supplies project parts Supplier Project

Callie’s Birthday SLIDE 45IS 202 – FALL 2004 Types of Relationships Concerned only with cardinality of relationship Truck Assigned EmployeeProject Assigned EmployeeProject Assigned Employee 11 n n 1 m Chen ER notation

Callie’s Birthday SLIDE 46IS 202 – FALL 2004 Other Notations Truck Assigned EmployeeProject Assigned EmployeeProject Assigned Employee “Crow’s Foot”

Callie’s Birthday SLIDE 47IS 202 – FALL 2004 Other Notations Truck Assigned EmployeeProject Assigned EmployeeProject Assigned Employee IDEFIX Notation

Callie’s Birthday SLIDE 48IS 202 – FALL 2004 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

Callie’s Birthday SLIDE 49IS 202 – FALL 2004 Weak Entities Owe existence entirely to another entity Order-line Contains Order Invoice # Part# Rep# QuantityInvoice#

Callie’s Birthday SLIDE 50IS 202 – FALL 2004 Supertype and Subtype Entities Clerk Is one of Sales-rep Invoice Other Employee Sold Manages

Callie’s Birthday SLIDE 51IS 202 – FALL 2004 Many to Many Relationships Employee Project Is Assigned Project Assignment Assigned SSN Proj# SSN Proj# Hours

Callie’s Birthday SLIDE 52IS 202 – FALL 2004 Lecture Overview Review –MediaStreams Databases and Database Design Database Life Cycle ER Diagrams Discussion Next Time/Readings

Callie’s Birthday SLIDE 53IS 202 – FALL 2004 Discussion Why use DBMS for web-based system development? Why Not use IR systems? Can you use both? Other Questions?

Callie’s Birthday SLIDE 54IS 202 – FALL 2004 Lecture Overview Review –MediaStreams Databases and Database Design Database Life Cycle ER Diagrams Database Design Discussion Next Time/Readings

Callie’s Birthday SLIDE 55IS 202 – FALL 2004 Next Time Database Design – Normalization and SQL Readings –Hoffer/McFadden “Logical database Design and the Relational Model”