24
5Database Processing

Case mis ch05

Embed Size (px)

Citation preview

Page 1: Case mis ch05

5장

Database Processing

Page 2: Case mis ch05

• Dee selected Movable Type application program

• Needs database program to store blog

– Consultant suggested MySQL

– Network standardized on Oracle

• May not be able to run Movable Type

• Will require revision of labor estimates

– IT resists installing MySQL

5-2

This Could Happen to You

Page 3: Case mis ch05

• To organize and keep track of things

• Spreadsheets do that too – Keep lists of single concept

– Example: Student test scores in a course

• Databases – Keep lists that involve multiple themes/concepts

– Examples: Student grades, grades for all courses in a department, courses offered in all departments, faculty records, and so on

Q1: What Is the Purpose of a

Database?

5-3

Page 4: Case mis ch05

• Self-describing collection of integrated records

• Hierarchy of data elements – Bytes/data are grouped into columns/fields

– Columns grouped into rows/records

– Rows are grouped into tables/files

• Collection of tables plus relationships among rows – Also includes “metadata”

• Describes the structure of the database

• A database is a structured collection of records or data that is stored in a computer system so that a computer program or person using a query language can consult it to answer queries.

5-4

Q2: What Does a Database Contain?

Page 5: Case mis ch05

Student Table (also called a file)

5-5

Page 6: Case mis ch05

• Values in one table may relate to rows/records in

other tables

• Keys

– Column(s) that identify unique row in table

– Each table has a key

• Foreign keys

– Keys of a different table than the one in which they reside

• Relational databases

– Databases using tables, keys, and foreign keys

5-6

Relationships Among Records

Page 7: Case mis ch05

5-7

Example of Relationships

Among Rows

Figure 5-6

Page 8: Case mis ch05

• Database is self-describing

– Contains descriptions of its data

• Metadata – Data that describe data – Make databases more useful – Make databases easier to use

• Describe data

– Data type – Field name – Field properties

5-8

Metadata

Page 9: Case mis ch05

• Database management system (DBMS)

–Program that creates, processes, and administers database

–Usually licensed from vendors

–Examples: Microsoft Access, Oracle, MySQL, DB2

• DBMS and database are two different things

–Database is a structured collection of records or data that is stored in a computer system so that a computer program or person using a query language can consult it to answer queries. The computer program used to manage and query a database is known as a database management system (DBMS).

5-9

Q3: What Is a DBMS and

What Does It Do?

Page 10: Case mis ch05

Components of a Database

Application System

5-10

Page 11: Case mis ch05

• DBMS used to create tables, relationships in

databases

• Applications use DBMS to read, insert,

modify, and delete data

– Structured Query Language (SQL) • International standard for processing database

5-11

Database Management Systems

Page 12: Case mis ch05

Creating the Database and Its Structure

5-12

Page 13: Case mis ch05

• Four DBMS operations 1. Read data

2. Insert data

3. Modify data

4. Delete data

• Structured Query Language INSERT INTO Student

([Student Number], [Student Name], HW1, HW2,

MidTerm)

VALUES

(1000, ‘Franklin, Benjamin’, 90, 95, 100)

Processing the Database

5-13

Page 14: Case mis ch05

• DBMS security features used to set up user

accounts, passwords, permissions,

processing limits

– Permissions – data access rights for specific users

or groups of users

• Database backup and replication, adding

structures, removing unneeded data

Administering the Database

5-14

Page 15: Case mis ch05

• Collection of forms, reports, queries, and

application programs that process a database

• Databases can have multiple applications

• Applications can have multiple users

5-15

Q4: What Is a Database Application?

Page 16: Case mis ch05

Use of Multiple Database Applications

5-16

Page 17: Case mis ch05

• Forms – Used to read, insert, modify, and delete data

• Reports – Show data in structured context

– May compute values

• Queries – Are a means of getting answers from database

data

5-17

Forms, Reports, and Queries

Page 18: Case mis ch05

• Application programs

– Process logic specific to a business need

– May enable database processing over Internet to:

• Serve as intermediary between Web server and database

• Respond to events

• Read, insert, modify, delete data

5-18

Database Application Programs

Page 19: Case mis ch05

Example of a Query

5-19

Page 20: Case mis ch05

• Enterprise DBMS – Processes large organizational and workgroup

databases – Supports many users (thousands plus) – Examples: DB2, SQL Server, Oracle, DB2

• Personal DBMS

– Designed for smaller, simpler database applications

– Supports fewer than 100 users – Examples: Access, dBase, FoxPro, Paradox, R-

Base

5-20

Q5: What Is the Difference Between an

Enterprise DBMS and a Personal DBMS?

Page 21: Case mis ch05

Personal Database System

5-21

Page 22: Case mis ch05

Helps to:

• Know what a DBMS is and what roles it can play

• Understand the diagram of the role of the DBMS for

her blog

– System is isolated from rest of databases

– Uses MySQL as part of functionality of her application

• Be better able to explain what she wants, and that it is

no threat or exception to Oracle standard

• Maybe avoid hiring a consultant

5-22 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall

How Does the Knowledge in This

Chapter Help Dee and You?

Page 23: Case mis ch05

5-23 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall

Role of DBMS for Dee’s Blog

Page 24: Case mis ch05

• Databases take time to build

• Complicated to operate

– May require use of multiple applications

• Need IS people to create it and keep it

running

• Will share data that you may not want to

expose

• Spreadsheets may be a better option in some

cases

5-24

Guide: No, Thanks, I’ll Use a

Spreadsheet