0% found this document useful (0 votes)
53 views38 pages

Chapter01-Introduction To Database Management-Edited1

Uploaded by

sitinursyukrina
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views38 pages

Chapter01-Introduction To Database Management-Edited1

Uploaded by

sitinursyukrina
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 38

Chapter 1

Introduction to Database
Management

McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved.
Welcome!
 Database technology: crucial to the
operation and management of modern
organizations
 Major transformation in computing skills
 Significant time commitment
 Exciting journey ahead

1-2
Book Goals
 First course in database management
 Practical textbook
 Fundamentals of relational databases
 Data modeling and normalization
 Database application development
 Database administration and database
processing environments
 Detailed material

1-3
Outline
 Database characteristics
 DBMS features
 Architectures
 Organizational roles

1-4
Initial Vocabulary
 Data: raw facts about things and events
 Information: transformed data that has
value for decision making
 Essential to organize data for retrieval and
maintenance

1-5
Database Characteristics
 Database: a collection of persistent data that
can be shared and interrelated

 Persistent: data reside on stable storage eg


magnetic disk, depending on relevance of
intended usage, store only data relevant for
decision making

 Shared: db can have multiple uses and users

 Interrelated: data stored as separate units can


be connected to provide a whole picture
1-6
University Database

Faculty
Registration
Entities: Assignment
students, faculty, courses,
offerings, enrollments
Relationships:
faculty teach offerings,
Grade students enroll in Course
Recording offerings, offerings made Scheduling
of courses, ...

University Database

1-7
Water Utility Database

Payment
Billing Processing
Entities :
customers, meters, bil s,
payments, meter readings
Relationships :
bil s sent to customers,
Meter customers make payments, Service Start/
customers use meters, ...
Reading Stop

1-8
Database Management System (DBMS)
 Collection of components that support data
acquisition, dissemination, storage,
maintenance, retrieval, and formatting (red
highlight are the initial function of DBMS)
 Enterprise DBMSs eg Oracle, IBM DB2
 Desktop DBMSs eg Access
 Open source DBMSs eg MySQL
 Embedded DBMSs reside in application system
or device eg PDA, smart card
 Major part of information technology
infrastructure
1-9
DBMS Features: Database Definition
 Language ie SQL and graphical tools to
define database structure before using a
database
 Table stores collections of entities, is a
two-dimensional arrangement of data
consisting of columns (or fields or
attributes) and rows (or records or tuples)

1-10
DBMS Features: Database Definition
 Most DBMSs provide SQL, industry
standard language, to define tables,
relationships among tables, integrity
constraints (rules that define allowable
data), and authorization rights (rules that
restrict access to data)
 Microsoft Access uses graphical tool for
defining tables (Fig 1.5) and relationships
(Fig 1.6)
1-11
University Database Relationship Window Using
Microsoft Access

Relationships

Tables
s

1-12
University Database (ERD) Using Visio Professional

Student Offering Faculty


StdSSN OfferNo FacSSN
StdClass OffLocation Teaches FacSalary
StdMajor OffTime FacRank
StdGPA Has FacHireDate

Supervises
Accepts

Registers Course
Enrollment CourseNo
CrsDesc
EnrGrade
CrsUnits

1-13
DBMS Features: Nonprocedural Access
 Most important DBMS feature is to answer
queries
 Query: request for data to answer a question
 Indicate what parts of database to retrieve not
the how part (procedural details)
 Improve productivity and improve accessibility
 Eg. SQL SELECT statement and graphical tools
like Microsoft Access Query Design Window

1-14
Graphical Tool for Nonprocedural Access

1-15
DBMS Features: Application Development

 Form: formatted document for data entry


and display
 Report: formatted document for display
 Use nonprocedural access to specify data
requirements of forms and reports

1-16
Sample Data Entry Form

1-17
Sample Report

1-18
DBMS Features: Procedural Language Interface

 A method to combine programming


language eg COBOL or Visual Basic with
a nonprocedural language eg SQL
 Eg Oracle has PL/SQL and Microsoft has
Transact-SQL
 Why
 Batch processing
 Customization and automation
 Performance improvement

1-19
DBMS Features: Transaction Processing
 Transaction: a unit of work that should be
reliably processed without interference
from other users and without loss of data
due to failures
 Eg withdrawing cash at ATM, making
airline reservation, course registration
 Process large volumes of repetitive work
 Control simultaneous users
 Recover from failures
1-20
DBMS Features: Database Tuning

 Tools to monitor and improve database


performance
 Utility programs can be provided to
reorganize a database, select physical
structures for better performance, and
repair damaged parts of a database
 Very important on DBMSs that support
large databases with simultaneous users

1-21
Database Technology
Evolution
Era Generation Orientation Major Features
1960s 1st Generation File File structures and
proprietary program
interfaces
1970s 2nd Generation Network Networks and hierarchies
Navigation of related records,
standard program
interfaces
1980s 3rd Generation Relational Non-procedural
languages, optimization,
transaction processing
1990s 4th Generation Object Multi-media, active,
distributed processing,
XML enabled

1-22
DBMS Marketplace
 Enterprise DBMS
 Oracle: dominates in Unix; strong in Windows
 SQL Server: strong in Windows
 DB2: strong in mainframe environment
 Significant open source DBMSs: MySQL,
Firebird, PostgreSQL
 Desktop DBMS
 Access: dominates
 FoxPro, Paradox, Approach, FileMaker Pro

1-23
Data Independence
 Software maintenance is a large part of
information system budgets and 50% goes
to database changes
 Data independence is a concept where a
db should have an identity separate from
the applications (computer programs,
reports, forms) that use it
 The separate identity allows the db
definition to be changed without affecting
related applications
1-24
Three Schema Architecture
 Mid 1970s the concept of data
independence led to the proposal of the
Three Schema Architecture
 Schema means db description
 Three levels of db description:
 External or view
 Conceptual
 Internal

1-25
Three Schema Architecture
External
View 1 View 2 View n Level

External to
Conceptual
Conceptual Conceptual
Mappings
Schema Level
Conceptual
to Internal
Mappings Internal
Internal Level
Schema

1-26
Three Schema Architecture
 External Level
 Is the user level
 Each group of users can have a separate
external view (or view for short) of a database
tailored to the group’s specific needs
 Conceptual Level
 Represent the entire database
 It defines the entities and relationships

1-27
Three Schema Architecture
 Internal Level
 Represent the entire database and the
storage view of the database
 It defines files, collections of data on a
storage device such as a hard disk

1-28
Differences among Levels
 External
 FacultyAssignmentFormView: data required
for the form in Slide 17 (Figure 1.9)
 FacultyWorkLoadReportView: data required
for the report in Slide 18 (Figure 1.10)
 Conceptual
 Tables in Slide 12 (Figure 1.6)
 Internal
 Files needed to store the tables
 Extra files to improve performance eg indexed
file (Figure 1.5)
1-29
Schema Mappings
 It describes how a schema at a higher
level is derived from a schema at a lower
level
 External to conceptual mappings provide
the knowledge to convert a request using
an external view into a request using the
tables in the conceptual schema
 Conceptual to internal mappings provide
how entities are stored in files
1-30
Distributed Processing
 Distributed processing is becoming a
crucial function of DBMSs due to network
computing and the internet
 It allows geographically dispersed
computers to cooperate when providing
data access eg e-commerce
 Many DBMSs support distributed
processing using a client-server
architecture
1-31
Client-Server Architecture
a) Client, server, and b) Mulitple clients and 1 server
 An arrangement of database on the on different computers
same computer
components (clients Client Client Server
and servers) and data Server

among computers Client

connected by a Client Database


network
Database
 It provides a flexible c) Multiple servers and databases on different computers

way for DBMSs to Client Server Server Client

interact with computer Client Client

networks
Database Database

1-32
Organizational Roles
S p ecializatio n

F u n ctio n al U ser I n fo rm atio n S ystem s

I n d irect P aram etric P o w er DBA A n alyst/ P rog ram m e r M an ag em en t

T ech n ic al N o n T ech n ica l

1-33
Organizational Roles
 Functional users interact passively or
actively with databases as part of their
work
 Indirect users play passive role where they
are given reports or data extracted from db
 Parametric users are more active than indirect
user; request forms/reports using parameters,
input values that change from usage to usage
eg date, department name
 Power users are most active; can build
forms/reports when needed
1-34
Organizational Roles
 Information systems professionals interact
with databases as part of developing an
information systems
 DBA assists both information systems
professionals and functional users
 Analyst/programmer is responsible for
collecting requirements, designing
applications, and implementing information
systems
 Management has oversignt role in db and
information systems development
1-35
Database Specialists
 Database administrator (DBA)
 More technical
 DBMS specific skills
 Data administrator (DA)
 Less technical
 Planning role

1-36
Summary
 Databases and database technology vital
to modern organizations
 Database technology supports daily
operations and decision making
 Nonprocedural access is a crucial feature
 Many opportunities to work with databases

1-37
Review Questions
 Final Exam April 2010 Question 1

b) Outline the Three Schema Architecture. Distinguish clearly between


the levels. How does this architecture help to ensure data
independence? (8 marks)

c) For each of the following changes, identify which if any of the


schemas in the Three Schema Architecture will need to be changed.
Explain briefly.
i a large mailing list needs to be stored in two smaller relations for
performance reasons.
ii an application needs to access an existing personnel attribute which
it did not need before.
iii a personnel record is to be added to the database
(6 marks)
 Answer

1-38

You might also like