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

Experiencing MIS 8th 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 (3.97 MB, 59 trang )

Chapter 5
Database Processing


“No, Drew, You Don’t Know Anything About
Creating Queries."
• Sales database used to determine which parts to consider for 3D
printing.
• If Addison and Drew depend on Lucas (or IT dept) to produce reports,
they will (a) wait a long time, and (b) probably not get what they want.
• Once they get data, Addison creates queries and reports.
• Relying on own skills gives more freedom and better results.
• Relational database technology not appropriate for 3D parts files or
graphics used for query-by-graphics. MongoDB a better choice.

Copyright © 2016 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?
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: What is the users’ role in the development of databases?
Q8: 2025?

Copyright © 2016 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

Copyright © 2016 Pearson Education, Inc.

5-4


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

Copyright © 2016 Pearson Education, Inc.

5-5


Student Data Form from a Database

Copyright © 2016 Pearson Education, Inc.


5-6


Q2: What Is a Database?

Copyright © 2016 Pearson Education, Inc.

5-7


Hierarchy of Data Elements

Copyright © 2016 Pearson Education, Inc.

5-8


Components of a Database

Copyright © 2016 Pearson Education, Inc.

5-9


Example of
Relationships
Among Rows

Copyright © 2016 Pearson Education, Inc.


5-10


Sample Metadata (in Access 2003)

Copyright © 2016 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 her job faster and better
• What are your personal, professional, social
responsibilities?

Copyright © 2016 Pearson Education, Inc.

5-12


Ethics Guide: Querying Inequality? (cont’d)
• Query databases to learn 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 you want to add to your criteria for
finding a job?

Copyright © 2016 Pearson Education, Inc.

5-13


So What? Not What the Data Says . . .
• Perception based on small sample
– “I called four different sales reps, and they said they
can’t get any prospects to bite.”
• Fact: “Not what the data says."
• Key skill - isolating facts from our perceptions.
– Look objectively at facts and not just perceptions of
facts

Copyright © 2016 Pearson Education, Inc.

5-14


Q3: What Is a Database Management System
(DBMS)?
• Program used to create, process, and administer a
database
• Licensed from vendors such as IBM, Microsoft, Oracle,
and others
– DB2, Access and SQL Server, Oracle Database
– MySQL - open source, license-free for most

applications

Copyright © 2016 Pearson Education, Inc.

5-15


Processing the Database
Four DBMS operations
1. Read
2. Insert
3. Modify
4. Delete data

Copyright © 2016 Pearson Education, Inc.

5-16


Processing the Database
• Structured Query Language - SQL (see-quell)
– International standard
– Used by most popular DBMS
INSERT INTO Student
([Student Number], [Student Name], HW1, HW2,
MidTerm)
VALUES (1000, ‘Franklin, Benjamin’, 90, 95, 100);

Copyright © 2016 Pearson Education, Inc.


5-17


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

Copyright © 2016 Pearson Education, Inc.

5-18


Administering the Database
• Set up security system involving user accounts,
passwords, permissions, and limits for processing
• Limit user permissions in very specific ways
• Backing up database data, adding structures to
improve performance of database applications,
removing unwanted data

Copyright © 2016 Pearson Education, Inc.

5-19


Summary of Database Administration Tasks

Copyright © 2016 Pearson Education, Inc.

5-20



Summary of Database Administration Tasks
(cont'd)

Copyright © 2016 Pearson Education, Inc.

5-21


Q4: How Do Database Applications Make
Databases More Useful?
Forms
Queries
Reports
Application programs

View data; insert new, update existing, and
delete existing data.
Search based upon data values provided by
the user.
Structured presentation of data using sorting,
grouping, Filtering, and other operations.
Provide security, data consistency, and
special purpose processing, e.g., handle
out-of-stock situations.

Copyright © 2016 Pearson Education, Inc.

5-22



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

Copyright © 2016 Pearson Education, Inc.

5-23


Example of a Student Report

Copyright © 2016 Pearson Education, Inc.

5-24


Query Example

Copyright © 2016 Pearson Education, Inc.

5-25


×