Information Systems Development COMM005 (CSM03) Autumn Semester 2009

Similar documents
Systems Analysis & Design

Chapter 11: Data Management Layer Design

Systems Analysis & Design

Rekayasa Perangkat Lunak 2 (IN043): Pertemuan 8. Data Management Layer Design

COMM 391. Objectives. Introduction to Microsoft Access. What is in an Access database file? Introduction to Microsoft Access 2010

How to design a database

Introduction to Database Systems (1)

TIM 50 - Business Information Systems

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1

VU Mobile Powered by S NO Group All Rights Reserved S NO Group 2013

(ADVANCED) DATABASE SYSTEMS (DATABASE MANAGEMENTS) PROF. DR. HASAN HÜSEYİN BALIK (6 TH WEEK)

8) A top-to-bottom relationship among the items in a database is established by a

Key Ideas. OO Analysis and Design Foundation. Objectives. Adapted from slides 2005 John Wiley & Sons, Inc.

Data, Databases, and DBMSs

! Define terms. ! Interpret history and role of SQL. ! Write single table queries using SQL. ! Establish referential integrity using SQL

Inputs. Decisions. Leads to

COMP102: Introduction to Databases, 14

Review -Chapter 4. Review -Chapter 5

DATABASES SQL INFOTEK SOLUTIONS TEAM

Data about data is database Select correct option: True False Partially True None of the Above

Modern Systems Analysis and Design Sixth Edition

Official Statistics - Relational Database Management Systems. Official Statistics - Relational Database Management Systems

Introduction to Databases

COWLEY COLLEGE & Area Vocational Technical School

Concepts of Database Management Seventh Edition. Chapter 4 The Relational Model 3: Advanced Topics

Using Relational Databases for Digital Research

A7-R3: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS

Chapter 3B Objectives. Relational Set Operators. Relational Set Operators. Relational Algebra Operations

Chapter 1 SQL and Data

Module 9: Managing Schema Objects

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.

The functions performed by a typical DBMS are the following:

7) To be considered a composite key, a key must contain at least two attributes. Answer: TRUE

TIM 50 - Business Information Systems

COMP 3400 Mainframe Administration 1

Management Information Systems MANAGING THE DIGITAL FIRM, 12 TH EDITION FOUNDATIONS OF BUSINESS INTELLIGENCE: DATABASES AND INFORMATION MANAGEMENT

Database Management System (15ECSC208) UNIT I: Chapter 1: Introduction to DBMS and ER-Model

OBJECTIVES. How to derive a set of relations from a conceptual data model. How to validate these relations using the technique of normalization.

CPS510 Database System Design Primitive SYSTEM STRUCTURE

Full file at

CSE 3241: Database Systems I Databases Introduction (Ch. 1-2) Jeremy Morris

Technology In Action, Complete, 14e (Evans et al.) Chapter 11 Behind the Scenes: Databases and Information Systems

Implementing Table Operations Using Structured Query Language (SQL) Using Multiple Operations. SQL: Structured Query Language

Entity Attribute STUDENT TABLE tuples single domain

Consistency The DBMS must ensure the database will always be in a consistent state. Whenever data is modified, the database will change from one

Institute of Southern Punjab, Multan

Modern Systems Analysis and Design

Developing Microsoft SQL Server 2012 Databases

Exam code: Exam name: Database Fundamentals. Version 16.0

Assignment Session : July-March

CHAPTER 6 SUMMARY. Objective 1: Identify Good Database Design

Databases & Database Users

CS W Introduction to Databases Spring Computer Science Department Columbia University

Normalization. Normal Forms. Normal Forms

Essay Question: Explain 4 different means by which constrains are represented in the Conceptual Data Model (CDM).

Solved MCQ on fundamental of DBMS. Set-1

CSC 407 Database System I COURSE PARTICULARS COURSE INSTRUCTORS COURSE DESCRIPTION

Systems Analysis and Design in a Changing World, Fourth Edition. Chapter 12: Designing Databases

Mahathma Gandhi University

Data Base Concepts. Course Guide 2

Course Outline Faculty of Computing and Information Technology

Interview Questions on DBMS and SQL [Compiled by M V Kamal, Associate Professor, CSE Dept]

II B.Sc(IT) [ BATCH] IV SEMESTER CORE: RELATIONAL DATABASE MANAGEMENT SYSTEM - 412A Multiple Choice Questions.

Introduction to Information Systems

MINGGU Ke 8 Analisa dan Perancangan Sistem Informasi

Several major software companies including IBM, Informix, Microsoft, Oracle, and Sybase have all released object-relational versions of their

Databasesystemer, forår 2005 IT Universitetet i København. Forelæsning 8: Database effektivitet. 31. marts Forelæser: Rasmus Pagh

Database Management System 9

Evolution of Database Systems

SQL: Concepts. Todd Bacastow IST 210: Organization of Data 2/17/ IST 210

20762B: DEVELOPING SQL DATABASES

COGS 121 HCI Programming Studio. Week 03 - Tech Lecture

Rajiv GandhiCollegeof Engineering& Technology, Kirumampakkam.Page 1 of 10

Relational Database Management Systems Mar/Apr I. Section-A: 5 X 4 =20 Marks

CSC 261/461 Database Systems Lecture 6. Fall 2017

BIRKBECK (University of London)

Management Information Systems

Chapter 1: Introduction

Higher National Unit specification: general information. Relational Database Management Systems

Overview. Data Integrity. Three basic types of data integrity. Integrity implementation and enforcement. Database constraints Transaction Trigger

Microsoft. [MS20762]: Developing SQL Databases

CISC 3140 (CIS 20.2) Design & Implementation of Software Application II

Information Management (IM)

An Effective Methodology for an Upper-level Fundamentals of Database Systems Course

Computers Are Your Future

Lecture 8. Database vs. Files SQL (I) Introduction to SQL database management systems (DBMS)

Course Outline. MySQL Database Administration & Design. Course Description: Pre-requisites: Course Content:

Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary

Come And Join us At Worlds Top Study Site

Developing SQL Databases

Relational Database Management Systems Oct/Nov I. Section-A: 5 X 4 =20 Marks

DATABASE MANAGEMENT SYSTEM SHORT QUESTIONS. QUESTION 1: What is database?

20464 Developing Microsoft SQL Server Databases

Relational Model. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan

DB2 MOCK TEST DB2 MOCK TEST I

Foundations of Business Intelligence: Databases and Information Management

Definition of terms Objectives Interpret history and role of SQL Define a database using SQL data definition iti language Write single table queries u

More about Databases. Topics. More Taxonomy. And more Taxonomy. Computer Literacy 1 Lecture 18 30/10/2008

Course Logistics & Chapter 1 Introduction

Credit where Credit is Due. Last Lecture. Goals for this Lecture

Transcription:

Information Systems Development COMM005 (CSM03) Autumn Semester 2009 Dr. Jonathan Y. Clark Email: j.y.clark@surrey.ac.uk Course Website: www.computing.surrey.ac.uk/courses/csm03/isdmain.htm Slide 1

Adapted from slides 2005 John Wiley & Sons, Inc. Slide 2

Course Textbook: Systems Analysis and Design With UML 2.0 An Object-Oriented Oriented Approach, Second Edition Chapter 11: Data Management Layer Design Slide 3

Objectives Become familiar with several object-persistence formats. Be able to apply the steps of normalization to a relational database. Be able to optimize a relational database for object storage and access. Slide 4

Data Management Layer Choose object-persistence format to support the system Problem domain objects drive object storage design Design of Data Storage Must optimize processing efficiency Data access and manipulation Separate problem domain classes from storage format Handle all communication with the database Slide 5

Object Persistence Formats Files (Sequential and Random) Relational databases Object-relational databases Object-oriented databases Slide 6

Customer Order File Slide 7

Sequential Access Files Sequential access files allow sequential operations Read, write, and search Efficient for report writing Searches are not efficient because an average of 50% of records have to be accessed Two versions Ordered unordered Slide 8

Random Access Files Allow only random or direct file operations Good for finding and updating a specific object Inefficient report writing Slide 9

Application File Types Master Files Look-up files Transaction files Audit file History file Slide 10

Relational Databases Collection of tables Comprised of fields that define entities Primary key has unique values in each row of a table Foreign key is primary key of another table Tables related to each other Primary key field of a table is a field of another table and called a foreign key Relationship established by a foreign key of one table connecting to the primary key of another table Slide 11

Database Management System (DBMS) Software that creates and manipulates a database RDBMS is a DBMS for a relational database RDBMS usually support Referential Integrity Slide 12

Referential Integrity the idea of ensuring that values linking the tables together through the primary and foreign keys are valid and correctly synchronized. Slide 13

Referential Integrity Example Cust. ID is a primary key for the customer table Cust. ID is a foreign key for the order table A violation of referential integrity would happen if an order was entered in the order table for a Cust. ID that had not been entered into the customer table first An RDBMS prevents such a record from being entered Slide 14

Example of Referential Integrity Slide 15

Structured Query Language (SQL) Standard language for accessing data in tables SQL Commands Slide 16 Create, edit, and delete tables Add, edit, and delete data Display data from one or more related tables Display data computed from data in one or more related tables

Object-Relational Databases Relational database management systems with extensions that handle object storage in the relational table structure This is done by user defined types and extensions to SQL Example: a map data type Slide 17

Criteria for Object Persistence Formats Data types supported Types of application systems (transaction processing, DSS, ) Existing Storage Formats Future Needs Other miscellaneous Criteria (cost, concurrency control, ) Slide 18

Mapping RDBMS Tables to Problem Domain Classes Slide 19

Optimize RDBMS Object Storage Redundant data Wastes space Allow more room for error Null values in tables Difficult to interpret Slide 20

Example of Non-normalized Data Slide 21

Normalization Slide 22

Normalization Example Original Model Slide 23

Normalization Slide 24

2NF Normalized Model Slide 25

Normalization Slide 26

3NF Normalized Model Slide 27

Problems with RDBMS To access data in multiple tables, the tables must be joined This can result in many database operations and lead to huge tables and slow processing Slide 28

Speeding up access Denormalization Adds data from one table to another in order to speed processing and eliminate a join operation Example: Add customer last name to order table to avoid joining order to customer to get just last name Slide 29

Example Slide 30

Clustering Interfile clustering Arrange records on storage media so that similar records are stored close together inter-file cluster would be similar to storing peanut butter, jelly, and bread next to each other in a grocery store since they are often purchased together. Slide 31

Indexing An index in data storage is like an index in the back of a textbook; it is a mini table that contains values from one or more columns in a table and the location of the values within the table. A query can use an index to find the locations of only those records that are included in the query answer, and a table can have an unlimited number of indexes but too many can add overhead Slide 32

Indexing Example Slide 33

CD Selections Example Most of the data would be text and numbers Thus a relational database would be able to handle the data effectively However, images for the catalog require complex data objects for sound and video Slide 34

CD Selections Example Slide 35

Summary Object-persistence format Files (sequential or Random Access) Databases (RDBMS, ORDBMS, OODBMS) Map problem domain objects to Data Optimizing object storage Normalization Clustering, Indexes Slide 36