Week 04 Data Base Design: Database System
Week 04 Data Base Design: Database System
Week 04 Data Base Design: Database System
Involves
Database Design
Application Programs
Implementation
Physical Design
Implementation
Maintenance
Choose DBMS
Implement System
Test System
Operational
Database SystemsMaintenance
(Fall 2021) - Zahid.aslam@iub
Analyze Existing
System
Objective: To understand the working of existing
system
Analyze users’ requirements
Limitations
Focus only on flows of information
Decision points/basis not included
1.0 1.0
Process OR Process
Some Rules for Processes
• Always internal to system 0.
• Law of conservation of data: Processes
#1: Data stays at rest
unless
#2: Processes
moved cannot consume or create data
by a process.
–Must have at least 1 input data flow (to avoid miracles)
–Must have at least 1 output data flow (to avoid black holes)
–Should have sufficient inputs to create outputs (to avoid gray
holes)
Processes
• Logical process models omit any processes
that do nothing more than move or route
data, thus leaving the data unchanged. Valid
processes include those that:
– Perform computations (e.g., calculate grade
point average)
– Make decisions (determine
availa
bility of
ordered products)
– Sort, filter or
otherwise summarize data
Processes
• Logical process models omit any processes
that do nothing more than move or route data,
thus leaving the data unchanged. Valid
processes include those that:
– Organize data into useful information (e.g.,
generate a report or answer a question)
– Trigger other processes (e.g., turn on the furnace
or instruct a robot)
– Use stored data (create, read, update or delete a
record)
Symbols in DFDs
4. External Entities:
These are the entities interacting with the
system in any of two different ways. They
may be either receiving the data from the
system, or may be producing the data for
the system to consume.
Some Rules for External
Entities
• External people, systems and data
stores
• Reside outside the system, but
interact with system
• Either a) receive info from system,
b) trigger system into motion, or c) External
provide new information to system Entities
Context diagram
Level 0 diagram
Detailed diagram
Student Dean
Admission
System
Faculty
Registrar
Member
Database Systems (Fall 2021) - Zahid.aslam@iub
Diagram 0 Class
Requests Old Class Data
1.0 Class
Student Process C
Request Requests Updated Registration
Status Class Data
Updated
2.0 Student 7.0
Produce Produce
Data
Student
Faculty
Schedule
S Student Load
Registration Sheets
5.0 6.0
Produce Produce
Class Class
3.0 4.0
Lists Counts
Create Create
Student Class
Student
File File
Data
Course
Faculty
Registrar Offering member Dean
Database Systems (Fall 2021) - Zahid.aslam@iub
Detailed Diagram
Class
C
Registration
Request
Accepted
Rejected Request
1.4
Update
1.3 Class
S Student Update Data
Registration Student
Data
Context diagram of Food ordering
system – Level 0
8.27
Context diagram of Food
ordering system –
Level 1
8.28
Database Systems (Fall 2021) - Zahid.aslam@iub 37
Context Diagram-0-level DFD:
It is also known as a context diagram. It’s designed to be an abstraction view, showing
the system as a single process with its relationship to external entities. It represents the
entire system as a single bubble with input and output data indicated by
incoming/outgoing arrows.