DBMS Lec No 4
DBMS Lec No 4
1
Database Management
Systems
Lecture -4
2
Introduction
Functions of DBMS
DBMS Environments
Database Application
Development Process
Preliminary Study of System
3
Functions of DBMS
Data Processing
A User Accessible Catalog
Transaction Support
Concurrency Control Services
4
Functions of DBMS
Recovery Services
Authorization Services
Support for Data Communication
Integrity Services
5
DBMS Environments
Single User
Multi-user
Teleprocessing
File Servers
Client-Server
6
Teleprocessing
All processing at
a central computer
Dumb Terminals
7
File Servers
File Server
Database
LAN
Workstation
Workstation
8
Client-Server
Server
Database (with DBMS)
LAN
Client Client
9
Database Application Development Process
Involves
Database Design
Application Programs
Implementation
10
Database Design
11
Database Development Process
Similar to software
Preliminary Study
development process
Requirement
Analysis
DB Design
Physical Design
Implementation
Maintenance
12
Design Stages
Analyze User Environment
Choose DBMS
Implement System
Test System
Operational Maintenance
13
Analyze Existing System
Objective: To understand the working
of existing system
Analyze users’ requirements
Tool Used:
Data Flow Diagrams
14
Database Model
A database can be modeled as:
a collection of entities,
relationship among entities.
what computers do
Limitations
Focus only on flows of information
Decision points/basis not included
16
Entity Relationship Diagram (ERD)
20
The Importance of Data Models
Data models
Relatively simple representations, usually
graphical, of complex real-world data
structures
Facilitate interaction among the designer,
21
The Importance of Data Models (continued)
22
Data Model Basic Building Blocks
23
Business Rules
Brief, precise, and unambiguous
descriptions of a policies, procedures, or
principles within a specific organization
24
Business Rules (continued)
Must be extracted in writing
Must be kept up to date
Sometimes are external to the
organization
Must be easy to understand and
widely disseminated
Describe characteristics of the data as
viewed by the company
25
Discovering Business Rules
Operations manuals
26
Translating Business Rules into Data Model
Components
27
Discovering Business Rules
(continued)
Generally, nouns translate into
entities
28
The Evolution of Data Models
(continued)
Hierarchical
Network
Relational
Entity relationship
Object oriented (OO)
29
The Hierarchical Model
Developed in the 1960s to manage
large amounts of data for complex
manufacturing projects
30
The Hierarchical Model (continued)
31
The Hierarchical Model (continued)
The hierarchical structure contains
levels, or segments
Depicts a set of one-to-many (1:M)
relationships between a parent and its
children segments
Each parent can have many children
each child has only one parent
32
The Hierarchical Model (continued)
Advantages
Many of the hierarchical data model’s features
formed the foundation for current data models
33
The Hierarchical Model (continued)
Disadvantages
Complex to implement
Difficult to manage
Implementation limitations
Lack of standards
34
The Network Model
Created to
Represent complex data relationships
more effectively
Improve database performance
35
The Network Model (continued)
Schema
Conceptual organization of entire database as
viewed by the database administrator
Subschema
Defines database portion “seen” by the
application programs that actually produce the
desired information from data contained within
the database
Data Management Language (DML)
Defines the environment in which data can be
managed
36
The Network Model (continued)
Schema Data Definition Language
(DDL)
Enables database administrator to
Owner
parent
Member
child
38
The Network Model (continued)
39
The Network Model (continued)
Disadvantages
Too cumbersome
The lack of ad hoc query capability
Relationships
Constraints
41
Summary
Hierarchical model
42
Thank You
43 10/19/24
KEY POINTS
Data base architecture:
External View
The way users think about data
Each user has a view of the database limited to the
appropriate portion of the user’s perspective of
reality.
Conceptual view