Database Management System Slides
Database Management System Slides
CSE Science
of &Engineering
Department Computer
CSE Science
of &Engineering Database Group
Creating Data Flow Diagrams
Lemonade Stand Example
Department Computer
CSE Science
of &Engineering Database Group
Creating Data Flow Diagrams
Example Steps:
The operations of a simple 1. Create a list of activities
lemonade stand will be used • Old way: no Use-Case Diagram
to demonstrate the creation
of dataflow diagrams. • New way: use Use-Case Diagram
2. Construct Context Level DFD
(identifies sources and sink)
3. Construct Level 0 DFD
(identifies manageable sub processes )
4. Construct Level 1- n DFD
(identifies actual data flows and data stores )
Department Computer
CSE Science
of &Engineering Database Group
Creating Data Flow Diagrams
Example 1. Create a list of activities
Department Computer
CSE Science
of &Engineering Database Group
Creating Data Flow Diagrams
Example 1. Create a list of activities
Department Computer
CSE Science
of &Engineering Database Group
Creating Data Flow Diagrams
Example 1. Create a list of activities
Produce Product
Store Product
Department Computer
CSE Science
of &Engineering Database Group
Creating Data Flow Diagrams
Example 2. Construct Context Level DFD
(identifies sources and sink)
Create a context level
diagram identifying the Context Level DFD
sources and sinks (users).
Sales Forecast
Order 0.0
CUSTOMER Lemonade Production Schedule EMPLOYEE
Customer Order Product Served System Pay
Serve Product Payment Time Worked
Collect Payment Received Goods
Payment
Purchase Order
Produce Product
Store Product VENDOR
INVENTORTY
Order Raw Materials Production Data
Pay for Raw Materials
2.3 Quantity Produced &
Store Location Stored
Pay for Labor Product
Department Computer
CSE Science
of &Engineering Database Group
Creating Data Flow Diagrams
Example 4. Construct Level 1 (continued)
Create a level 1
decomposing the processes Level 1 DFD
in level 0 and identifying Order Decision
PURCHASE
data stores. 3.1 ORDER
Produce
Purchase
Customer Order Order Quantity On-Hand
Serve Product Quantity
RAW
MATERIALS
Collect Payment Received Received
Goods
3.2
Produce Product Receive
Items
Store Product RECEIVED
ITEMS
Payment Approval
Order Raw Materials
VENDOR
Pay for Raw Materials 3.3
Pay
Vendor
Pay for Labor
Department Computer Payment
CSE Science
of &Engineering Database Group
Creating Data Flow Diagrams
Example 4. Construct Level 1 (continued)
Create a level 1
decomposing the processes Level 1 DFD
in level 0 and identifying Time Worked
Payment Approval
Order Raw Materials
4.3
Pay for Raw Materials Pay
Employe
e PAYMENTS
Pay for Labor
Department Computer Payment
CSE Science
of &Engineering Database Group
Process Decomposition
1.1 1.2
1.0
Record Receive
Sale
Order Payment
0.0
Lemonade
System
3.1
3.0 3.2 3.3
Produce
Procure- Receive Pay
Purchase
ment Items Vendor
Order
4.1 4.3
4.2
4.0 Record Pay
Calculate
Payroll Time Employe
Payroll
Worked e
Context
DepartmentLevel
Computer Level 0 Level 1
CSEScience
of & Engineering Database Group
DFD Example: Bus Garage Repairs
reason for the repair and record the total cost of all parts
used on a Shop Repair Order.
Information on labor, parts and repair outcome is used
Department Computer
CSE Science
of &Engineering Database Group
DFD Example: Bus Garage Repairs (cont’d)
Data stores:
Personnel file
Repairs file
Bus master list
Parts list
Data flows:
Repair order
Bus record
Parts record
Employee timecard
Invoices
Department Computer
CSE Science
of &Engineering Database Group
Bus Garage Context Diagram
Bus
Mechanical Fixed
problem mechanical
to be repaired problems
Repair Supervisor
Helper Labor Bus summary
Repair
Process List of
System parts used Inventory
Labor Management
Labor, System
parts cost
details
Mechanic
Accounting
Department Computer
CSE Science
of &Engineering Database Group
CSUB Burger’s Order Processing System
Draw the CSUB Burger’s context diagram
System
Order processing system
External entities
Kitchen
Restaurant
Customer
Processes
Customer order
Receipt
Food order
Management report
Department Computer
CSE Science
of &Engineering Database Group
Do’s and Don’ts when constructing a Data Flow
Diagram
Department Computer
CSE Science
of &Engineering Database Group
Do’s and Don’ts when constructing a Data Flow
Diagram
Department Computer
CSE Science
of &Engineering Database Group
Do’s and Don’ts when constructing a Data Flow
Diagram
Department Computer
CSE Science
of &Engineering Database Group
Thank You
Slides from Yong Choi, BPA, CSUB
Department Computer
CSE Science
of &Engineering CSC 401: database Management System Database Group