0% found this document useful (0 votes)
40 views19 pages

DB Lecture 04

Uploaded by

raheelkr2003
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views19 pages

DB Lecture 04

Uploaded by

raheelkr2003
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 19

Database

Lecture Outline
• DataFlow Diagrams
• DataFlow Diagrams Level 0
• DataFlow Diagrams Level 1
• DataFlow Diagrams Level 2
DFD-Data Flow Diagram

A data flow diagram shows the way information flows


through a process or system.
It includes data inputs and outputs, data stores, and the
various subprocesses the data moves through.
DFDs are built using standardized symbols and notation to
describe various entities and their relationships.
DFD-Data Flow Diagram

• Dataflow diagrams visually represent systems and


processes that would be hard to describe in just words.
• Youcan use these diagrams to map out an existing system
and make it better or to plan out a new system for
implementation.
• Visualizingeach element makes it easy to identify
inefficiencies and produce the best possible system.
DFD: Level 0
• Level
0 is the highest-level Data Flow Diagram (DFD),
which provides an overview of the entire system. It shows
the major processes, data flows, and data stores in the
system, without providing any details about the internal
workings of these processes.

• 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.
DFD: Level 0
DFD: Level 1
• 1-Level provides a more detailed view of the system by
breaking down the major processes identified in the
level 0 Data Flow Diagram (DFD) into sub-processes.

• Each sub-process is depicted as a separate process on


the level 1 Data Flow Diagram (DFD). The data flows
and data stores associated with each sub-process are
also shown.
DFD: Level 1
• In1-level Data Flow Diagram (DFD), the context
diagram is decomposed into multiple
bubbles/processes. In this level, we highlight the main
functions of the system and breakdown the high-level
process of 0-level Data Flow Diagram (DFD) into
subprocesses.
DFD: Level 1
Class Activaty: DFD Level 0
• Design Data Flow Diagram (DFD) Level 0 for a hotel
Reservation System.
Class Activaty: DFD Level 0
+-----------------+
| User |
+-----------------+
|
| Reservation Request
|
v
+--------------------------+
| Hotel Reservation |
| System |
+--------------------------+
| ^
| Booking Details and Payment Confirmation
|
v
+-----------------------+
| Admin |
+-----------------------+
Class Activaty: DFD Level 0
• DesignLevel 0 diagram for the hotel reservation process
with the flow of information between admin and guests.
DFD: Level 0
• DesignLevel 0 diagram for the hotel reservation process
with the flow of information between admin and guests.
DFD: Level 0
DFD: Level 2
• 2-Level provides an even more detailed view of the
system by breaking down the sub-processes identified
in the level 1 Data Flow Diagram (DFD) into further sub-
processes.
• Each sub-process is depicted as a separate process on
the level 2 DFD. The data flows and data stores
associated with each sub-process are also shown.
• 2-Level Data Flow Diagram (DFD) goes one step deeper
into parts of 1-level DFD. It can be used to plan or
record the specific/necessary detail about the system’s
functioning.
Class Activaty: DFD Level 1
• In the hotel reservation example, this can include
adding the room selection and inquiry processes to the
reservation system, as well as data stores.
Class Activaty: DFD Level 1

You might also like