Академический Документы
Профессиональный Документы
Культура Документы
ISE-830 (3+0)
Fundamental Concepts
Instructor
Dr Sharifullah Khan
September 2011
Database System
Data recorded facts with implicit meaning Database an integrated collection of data
preserved over a long period organized for access and modification
Data Base Management Systems (DBMS): GENERALISED software package designed to store and manage database
Defining, constructing and manipulating databases
Data Model
Data abstraction hiding details of data storage A data model is a collection of concepts that can be used to describe the structure of a database:
Data structure, relationships and constraints
Data Modeling
DATABASE SYSTEM REALITY structures processes data modeling MODEL
The model represents a perception of structures of reality The data modeling process is to fix a perception of structures of reality and represent this perception In the data modeling process we select aspects and we abstract
Advanced Database Concepts 5
Process Modeling
REALITY structures processes process modeling DATABASE SYSTEM MODEL
The use of the model reflects processes of reality Processes may be represented by programs with embedded database queries and updates Processes may be represented by ad-hoc database queries and updates at run-time
DML PROG DML
Database Design
The purpose of database design is to create a database which
is a model of structures of reality supports queries and updates modeling processes of reality runs efficiently
Data Model
A data model consists of notations for expressing:
data structures integrity constraints operations
ER-Model
Data Structures Integrity Constraints Operations
The ER-Model is extremely successful as a database design model Translation algorithms to many data models Commercial database design tools, e.g., ERwin No generally accepted query language
attribute
multivalued attribute
derived attribute
E1
E2 E1
(min,max) participation of E2 in R
E3
E1
E2
total participation of E2 in R
E1
E2
ER Model - Example
dept time airport name airport addr street city airport code airport 1 zip arriv time date arriv airport n 1 1 dept airport n p
instance of n
flight instance
seat#
ER-Model - Operations
Several navigational query languages have been proposed A closed query language as powerful as relational languages has not been developed None of the proposed query languages has been generally accepted
Relational Model
Data Structures Integrity Constraints Operations Commercial systems include: ORACLE,
DB2, SYBASE, INFORMIX, INGRES, SQL Server
domain names
Advanced Database Concepts 16
Relational Calculus: declarative; describes the desired result, e.g. SQL, QBE insert, delete, and update capabilities
18
Normalization
FLIGHT-SCHEDULE
FLIGHT# 101 545 912 AIRLINE delta american scandinavian WEEKDAYS PRICE mo,fr mo,we,fr fr 156 110 450 FLIGHT-WEEKDAY FLIGHT# 101 545 912 101 545 PRICE 156 110 450 545 WEEKDAY mo mo fr fr we fr
FLIGHT-SCHEDULE
FLIGHT# 101 545 912 101 545 545 AIRLINE delta american scandinavian delta american american WEEKDAY mo mo
FLIGHT-SCHEDULE
FLIGHT# AIRLINE 101 545 912 delta american scandinavia n PRICE 156 110 450
19
fr fr we
fr
156 110
110
Course CourseName Intro to Comp Science Data Structure Discrete Mathematics Database CourseNo CS1310 CS3320 MATH2410 CS3380 CreditHours Departmen t 4 4 3 3 CS CS MATH CS
21
Three-Schema Architecture
End users
External View
External/conceptual mapping
External View
Conceptual Schema
Conceptual/internal mapping Internal Schema
Stored Databases
22
Data Independence
Logical data independence:
Logical data independence is a measure of how much the conceptual schema can change without affecting the application programs
23
DBMS Languages
Data Definition Language (DDL). Data Manipulation Language (DML).
Non procedural DML high level.
Set-at-a-time.
24
Classification of DBMSs -I
Data model:
Relational DBMSs. Object DBMSs. Object-relational DBMSs.
Number of users:
Single-user systems. Multi-user systems.
25
Classification of DBMSs - II
Number of Sites:
Centralized DBMSs. Distributed DBMSs (DDBMSs).
Homegeneous DDBMSs. Hetrogeneous DDBMSs.
26
27