SS3 Introduction To Database Systems
SS3 Introduction To Database Systems
Warren Zevon
Data is Ubiquitous
10 000s of spots
on a single chip
A microarray
Other Data Examples
• DBMS is:
– A collection of software programs
– General purpose
• DBMS enables users to:
– Define DB
– Construct DB
– Change (or update) DB
– Ask questions about the data in DB
– Share DB
• DBMS maintains the integrity of DB
Some RDBM Systems
Commercial Systems
Oracle ($$$$)
DB2 (IBM) ($$$)
SQL Server (Microsoft) ($$)
1 N
director of
MOVIE
MID Title Rating Director
PERSON
PID Name Bday
ACTS_IN
MID PID Role Rtype
A Schema Diagram for “University” DB
(from the textbook)
tables
columns
Building a DB:
Describe Physical Data Model
• PDM indicates how data is organized on disk
• Includes description of access paths or indexes
– Example: store “Movie” table with records ordered by MID and
construct an index on the “Title” attribute
1 The Big Lebowski R 99
2 Star Wars PG 16
ACTS_IN PERSON
MID PID Role Rtype PID Name Bday
1 1 The Dude STAR 1 Jeff Daniels 12/4/49
2 2 Han Solo CO_STAR 2 Harrison Ford 7/13/42
... ...
• Concurrent users
– Multiple users may attempt to update simultaneously
• Security
– Preventing unauthorized access
• System failures
– If lightening strikes during an update the DB must
able to be recovered
Summary of Topics
• Conceptual modeling
• Logical Modeling how to use DBMS
• Querying the DB
• Building applications
• Implementing Queries
• Managing hardware how a DBMS works
• Maintaining Integrity
Control Abstraction
User
Application Program
Each layer
Query Optimization need not know
(or care) how
Relational Operators other layers are
implemented
DBMS Files and Access Methods
Buffer Management
DB
Data Abstraction
Each layer need not know how other layers organize data
Why Use DBMS?