Tải bản đầy đủ (.pptx) (63 trang)

Experiencing MIS 9th by m kronenke chapter 05

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (1.86 MB, 63 trang )

Chapter 5

Database Processing


“We Don’t Have a Way to Track the Data About the Videos.”

• Falcon Security stores sequentially numbered digital video files in separated directories for each client.
• Tracking down exact footage of when equipment stolen means searching hundreds of video files.
• Need database to track video files.
• MongoDB for tracking video files?

Copyright © 2017 Pearson Education, Inc.

5-2


Study Questions
Q1: What is the purpose of a database?
Q2: What is a database?
Q3: What is a database management system (DBMS)?
Q4: How do database applications make databases more useful?
Q5: How are data models used for database development?
Q6: How is a data model transformed into a database design?
Q7: How can Falcon Security benefit from a database system?
Q8: 2026?

Copyright © 2017 Pearson Education, Inc.

5-3



Q1: What Is the Purpose of a Database?





Organize and keep track of things.
Keep track of multiple themes.
General rule:





Single theme - store in a spreadsheet.
Multiple themes - use a database.

What's a theme?



Ex: student grades, student emails, student office visits.

Copyright © 2017 Pearson Education, Inc.

5-4


A List of Student Grades Presented in a Spreadsheet – Single Theme


Copyright © 2017 Pearson Education, Inc.

5-5


Student Data Form for a Database Application

Copyright © 2017 Pearson Education, Inc.

5-6


Q2: What Is a Database?

Copyright © 2017 Pearson Education, Inc.

5-7


Hierarchy of Data Elements

Copyright © 2017 Pearson Education, Inc.

5-8


Components of a Database

Copyright © 2017 Pearson Education, Inc.


5-9


Example of
Relationships Among
Rows

Copyright © 2017 Pearson Education, Inc.

5-10


Sample of Access Metadata

Copyright © 2017 Pearson Education, Inc.

5-11


Ethics Guide: Querying Inequality?

• MaryAnn has a data mart.
• Business professional majored in HR, now "expert" in SQL.
• Uses SQL to do job faster and better.
• Examined data, saw possible discriminatory pattern.
• What would you do from categorical imperative and utilitarian perspectives?

Copyright © 2017 Pearson Education, Inc.


5-12


Ethics Guide: Querying Inequality? (cont’d)



Queries could reveal all sorts of patterns and trends.




Be sure what answers you want before starting query.

How strongly do you feel about social and personal responsibility, considering your needs and those of your
family?



How important is social responsibility posture of an employer to you?

– Is that something to add to your criteria for a job search?

Copyright © 2017 Pearson Education, Inc.

5-13


So What? Not What the Data Says . . .


• Subjective:
– Small, nonrandom sample.
– Called four different sales reps who can’t get any prospects to bite.
• Objective:
– Same month historical data, seasonal data comparisons.
• How to recognize and minimize bias?
– Use non-routine cognitive skills.

Copyright © 2017 Pearson Education, Inc.

5-14


Q3: What Is a Database Management System (DBMS)?




Program to create, process, administer a database.
Licensed from vendors

– IBM, Microsoft, Oracle, and others.
 DB2, Access, SQL Server, Oracle Database.


Open source



MySQL: License-free for most applications.


Copyright © 2017 Pearson Education, Inc.

5-15


Processing the Database

DBMS Process Operations

1. Read
2. Insert
3. Modify
4. Delete data

Copyright © 2017 Pearson Education, Inc.

5-16


Processing the Database



Structured Query Language - SQL (see-quell)




International standard

Used by nearly all DBMS

SQL Example
INSERT INTO Student
([Student Number], [Student Name], HW1, HW2, MidTerm)
VALUES (1000, ‘Franklin, Benjamin’, 90, 95, 100);

Copyright © 2017 Pearson Education, Inc.

5-17


Adding a New Column to a Table (in Access 2013)

Copyright © 2017 Pearson Education, Inc.

5-18


Administering the Database





Set up security system, user accounts, passwords, permissions, limits for processing.
Limit user permissions.
Back up database, improve performance of database applications, remove unwanted data.

Copyright © 2017 Pearson Education, Inc.


5-19


Summary of Database Administration Tasks

Copyright © 2017 Pearson Education, Inc.

5-20


Summary of Database Administration Tasks (cont'd)

Copyright © 2017 Pearson Education, Inc.

5-21


Q4: How Do Database Applications Make Databases More Useful?

View data; insert new, update existing, delete existing data.

Forms

Search using values provided by user.
Queries

Structured presentation of data using sorting, grouping, filtering, other
Reports


operations.
Provide security, data consistency, special purpose processing, e.g., handle

Application programs

Copyright © 2017 Pearson Education, Inc.

out-of-stock situations.

5-22


Q4: How Do Database Applications Make Databases More Useful? (cont'd)

Copyright © 2017 Pearson Education, Inc.

5-23


Example of a Student Report

Copyright © 2017 Pearson Education, Inc.

5-24


Query Example

Copyright © 2017 Pearson Education, Inc.


5-25


×