You are on page 1of 38

David 

M. Kroenke and David J. Auer
Database Processing—12th Edition
F d
Fundamentals, Design, and Implementation
t l D i dI l t ti

Chapter One:
Introduction
Modified & translated by Walter Chen
Dept. of Civil Engineering
National Taipei University of Technology
gp p
For classroom teaching purpose

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-1


© 2012 Pearson Prentice Hall
Chapter Objectives
• T
To understand
d t d theth nature
t and
d characteristics
h t i ti off
databases
• To survey some important and interesting database
applications
• To ggain a g
general understanding
g of tables and
relationships
• To describe the components of a Microsoft Access
database system and explain the functions they perform
• To describe the components of an enterprise-class
database system and explain the functions they perform
• To define the term database management system
(DBMS) and describe the functions of a DBMS
KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-2
© 2012 Pearson Prentice Hall
Chapter Objectives
• T
To define
d fi ththe term
t d t b
database anddd
describe
ib what
h t iis
contained within the database
• To define the term metadata and provide examples of
metadata
• To define and understand database design
g from existing
g
data
• To define and understand database design as new
systems development
• To define and understand database design in database
redesign
• To understand the history and development of database
processing
KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-3
© 2012 Pearson Prentice Hall
The Characteristics of Databases
• The purpose of a database is to help people
track things of interest to them.
• Data is stored in tables, which have rows and
columns like a spreadsheet. A database mayy
have multiple tables, where each table stores
data about a different thing.
• Each row in a table stores data about an
occurrence or instance of the thing of interest.
• A database stores data and relationships. 和試
算表最大的不同
KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-4
© 2012 Pearson Prentice Hall
Data in Tables

製作練習資料庫
見Appendix A

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-5


© 2012 Pearson Prentice Hall
The Key Characteristic of
Databases: Related Tables

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-6


© 2012 Pearson Prentice Hall
Naming Conventions in this
Textbook
• Table names are written with all capital
letters:
– STUDENT, CLASS, GRADE
• Column names are written with an initial
capital letter, and compound names are
written with a capital letter on each word:
– Term,, Section,, ClassNumber,, StudentName

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-7


© 2012 Pearson Prentice Hall
Databases Create Information
• D
Data
t = recorded
d d ffacts
t and d fifigures
• Information = knowledge g derived from
data
• Databases record data
data, but they do so in
such a way that we can produce
information from the data
data.
– The data on STUDENTs, CLASSes, and
GRADEs could produce information about
each student’s GPA.

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-8


© 2012 Pearson Prentice Hall
Database Examples

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-9


© 2012 Pearson Prentice Hall
Components of a Database System

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-10


© 2012 Pearson Prentice Hall
Components of a Database System
with SQL

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-11


© 2012 Pearson Prentice Hall
Applications the DBMS,
Applications, DBMS and SQL
• A
Applications
li ti are the
th computert programs
that users work with.
• The Database Management System
((DBMS)) creates,, processes,
p , and
administers databases.
• Structured Query Language (SQL) is an
internationally recognized standard
database language that is used by all
commercial DBMSs.
KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-12
© 2012 Pearson Prentice Hall
Database Applications

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-13


© 2012 Pearson Prentice Hall
Database Applications
Applications—Forms
Forms

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-14


© 2012 Pearson Prentice Hall
Database Applications
Applications—Queries
Queries

SELECT LastName, FirstName, EmailAddress


FROM STUDENT
WHERE StudentNumber > 2;

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-15


© 2012 Pearson Prentice Hall
Database Reports
Database—Reports

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-16


© 2012 Pearson Prentice Hall
The DBMS

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-17


© 2012 Pearson Prentice Hall
The Database
• A database
d t b i a self-describing
is lf d ibi collection
ll ti
of integrated tables.
• The tables are called integrated because
theyy store data about the relationships
p
between the rows of data.
• A database is called self-describing
because it stores a description of itself.
• The self
self-describing
describing data is called
metadata, which is data about data.詮釋
資料
KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-18
© 2012 Pearson Prentice Hall
Typical Metadata Tables

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-19


© 2012 Pearson Prentice Hall
Database Contents

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-20


© 2012 Pearson Prentice Hall
Personal Database Systems:
Microsoft Access

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-21


© 2012 Pearson Prentice Hall
Microsoft Access
• Microsoft Access is a low-end product
intended for individual users and small
workgroups.
• Microsoft Access tries to hide much of the
underlying database technology from the user.
• A good strategy for beginners, but not for
database professionals.
• NOTE: Microsoft Access 2007 is discussed in
detail in Appendix A.

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-22


© 2012 Pearson Prentice Hall
What Is Microsoft Access?
• Mi
Microsoft
ft Access
A is
i a DBMS plus
l an
application generator:
– Th
The DBMS creates,
t processes, and d administers
d i i t
Microsoft Access databases.
– The application generator includes query
query, form
form, and
report components.
• The Microsoft Access DBMS engine g is called the
Access Data Engine (ADE).
• Microsoft Access 2000 and later can be used as
an application generator for the Microsoft SQL
Server DBMS.
KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-23
© 2012 Pearson Prentice Hall
Enterprise-Class Database
Systems

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-24


© 2012 Pearson Prentice Hall
Prominent DBMS Products
• Microsoft Access 2010
• Microsoft SQL Server 2008 R2
– Microsoft SQL Server 2008 R2 Express
• Oracle Corporation Oracle Database 11g
• MySQL 5.5
55
• IBM DB2

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-25


© 2012 Pearson Prentice Hall
DBMS Power vs.
vs Ease of Use

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-26


© 2012 Pearson Prentice Hall
Three Types of Database Design

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-27


© 2012 Pearson Prentice Hall
Database Design from Existing Data

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-28


© 2012 Pearson Prentice Hall
Data Import: One or Two Tables?
This is an important
decision, and based on
a se
set o
of rules
u es known
o as
normalization (which is
covered in Chapter 3).

一個表格還是數個表格比較好?

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-29


© 2012 Pearson Prentice Hall
Database Design from New
Systems Development

Entity-Relationship data modeling is covered in Chapter 5, and data model


g are covered in Chapter 6.
transformations to database designs

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-30


© 2012 Pearson Prentice Hall
Database Design from Database
Redesign
Database redesign is
covered in Chapter 8,
after coverage of SQL in
Chapter Seven.

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-31


© 2012 Pearson Prentice Hall
What You Need To Learn

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-32


© 2012 Pearson Prentice Hall
Knowledge Priorities

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-33


© 2012 Pearson Prentice Hall
A Brief Historyy of
Database
Processing
I

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-34


© 2012 Pearson Prentice Hall
A Brief Historyy of
Database
Processing
II

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-35


© 2012 Pearson Prentice Hall
The Relational Database Model
• Th
The dominant
d i td
database
t b model
d l iis th
the
relational database model—all current
major DBMS products are based on it.
• It was created by y IBM engineer
g E. F.
Codd in 1970.
• It was based on mathematics called
relational algebra.
• This te
textt e
examines
amines and e
explains
plains the
relational database model.
KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-36
© 2012 Pearson Prentice Hall
David Kroenke and David Auer
Database Processing—12th Edition
Fundamentals Design and Implementation
Fundamentals, Design, and Implementation

End of Presentation:
Chapter One
Chapter One

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-37


© 2012 Pearson Prentice Hall
All rights reserved. No part of this publication may be reproduced, stored in a
retrieval system, or transmitted, in any form or by any means, electronic,
mechanical, photocopying, recording, or otherwise, without the prior written
permission of the publisher. Printed in the United States of America.

Copyright © 2012 Pearson Education, Inc.


Publishing as Prentice Hall

KROENKE AND AUER - DATABASE PROCESSING, 12th Edition 1-38


© 2012 Pearson Prentice Hall

You might also like