Title: Data Management Systems Design
1Data Management Systems Design
- CIS 631 Lecture Notes 2
- Cyril S. Ku
2Data Model
Data Model - a set of concept to describe the
data types, relationships,
constraints, operations, etc. of
a database.
(Conceptual) High Level
e.g. Entity
Object-Oriented Relationship
Model Relational,
Object-Oriented Network,
Database Hierarchical
(Logical)
(Physical) Low Level
Computer Storage
3User 1
User 2
User n
External (Individual Users)
View A
View Z
DBMS
Conceptual View
Conceptual (DBA)
Physical View
Internal (Physical)
4Database Schema - description of a database
(meta-data) e.g. Student (Name, SSN, Class,
Major)
Student
abc 1234 senior cs
Intensional DB (variable or data item in
programming language)
Instances - data in a database (values in
programming language) -
extensional DB Database State - one set of
instances to another -
transition of valid DB state to valid DB state
is part of the job of
DBMS.
5 Logical Data Independence
Database Schemas
Schema Changes
Not affecting application programs
uses
Application Program
Physical Data Independence - changes to
physical storage, not affecting database
schema. Data Definition Language (DDL) - defines
database schemas. Data Manipulation Language
(DML) - retrieval, insertion, deletion,
modification of data - SQL is both DDL and
DML DML embedded in a programming language
Host Language
Data Sub-language