Professional Documents
Culture Documents
Ch. 1, Ch. 2
www.cs.utsa.edu/~jortiz/CS3743/Lecture%20Notes/lect01.ppt
Introduction
Introduction
Lecture 1
Introduction
Introduction
Introduction
Entity-Relationship Model
A popular conceptual model.
Concepts include entities, relationships,
constraints. (see p.63 in text)
Age
GPA
Students
SID
Lecture 1
Credits
Grade
m
Enrolled
Name
Courses
CID
Introduction
Cname
Relational Model
The most widely used logical model today.
Concepts include: tables, constraints,
operations,
Students(sid: string, name: string, login: string,
age: integer, gpa:real)
Courses(cid: string, cname:string, credits:integer)
Enrolled(sid:string, cid:string, grade:string)
Lecture 1
Introduction
Conceptual schema
defines logical
structure using a data
model
Physical schema
describes the files and
indices used.
Lecture 1
Introduction
Conceptual Schema
Physical Schema
Introduction
10
Data Independence
DBMS is able to hide details of lower level
schema from clients of higher level schema
Logical data independence: Protects views
from changes in logical (conceptual)
structure of data.
Physical data independence: Protects
conceptual schema from changes in physical
structure of data.
Introduction
11
Database Language
Data Definition Language (DDL). Used to
define & change database schemas.
Storage Definition Language (SDL). Specify
the physical schema.
View Definition Language (VDL). Used to
represent information to users.
Data Manipulation Language (DML). Used to
query & update data.
Lecture 1
Introduction
12
Introduction
13
Structure of a DBMS
A typical DBMS has a
layered architecture.
The figure does not
show the concurrency
control and recovery
components.
This is one of several
possible architectures;
each system has its
own variations.
These layers
must consider
concurrency
control and
recovery
Query Optimization
and Execution
Relational Operators
Files and Access Methods
Buffer Management
Disk Space Management
DB
Lecture 1
Introduction
14
Summary
DBMS used to maintain, query large datasets.
Benefits include recovery from system crashes,
concurrent access, quick application
development, data integrity, and security.
Levels of abstraction give data independence.
A DBMS typically has a layered architecture.
DBAs hold responsible jobs
and are well-paid!
DBMS R&D is one of the broadest,
most exciting areas in CS.
Lecture 1
Introduction
15
Look Ahead
Read from the textbook:
Chapters 1 & 2
Next Topic: ER model
Read from the textbook
Chapter 3
Lecture 1
Introduction
16