Top Banner
© Virtual University of Pakistan Database Management Systems Lecture - 5
37

Database management systems cs403 power point slides lecture 05

Apr 14, 2017

Download

Education

Abu Sayed
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

DatabaseManagement

Systems

Lecture - 5

Page 2: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Lecture’s Overview

Database Application Development Process

Preliminary Study of System

Page 3: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Database Application Development Process

Involves

Database Design

Application Programs

Implementation

Page 4: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Database DesignA DB Design is a model of a

particular real-world system

It provides a picture of reality

Should be simple and self- explanatory

Page 5: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Database Development

Process

Page 6: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Database Development Process

Similar to software development process

Preliminary Study

Requirement Analysis

DB Design

Physical Design

Implementation

Maintenance

Page 7: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Design StagesAnalyze User Environment

Develop Conceptual Model

Map Conceptual Model to Logical

Choose DBMS

Develop Physical Design

Implement System

Test System

Operational Maintenance

Page 8: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Analyze Existing System

Objective: To understand the working of existing system

Analyze users’ requirements

Page 9: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Tool Used

Why to use at all?

Data Flow Diagrams

Page 10: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Data Flow Diagrams

Page 11: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Data Flow Diagrams (DFDs)

Represent the flow of data flow of data

between different processes between different processes

within a systemwithin a system

Page 12: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Data Flow DiagramsSimple & intuitive, not focusing on

detailsTo describe, what users dowhat users do,

rather than what computers do

Page 13: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Data Flow Diagrams Limitations

Focus only on flows of information Decision points/basis not included

Page 14: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

DFD-Symbols Dataflows: pipelines through

which packets of information flow. Arrows are labeled with name of the data that moves through

Page 15: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

DFD-SymbolsData Store

Repositories of data in systemStatic dataData held for processingName is a noun phrase

Page 16: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

DFD-Symbols Process

transforms incoming data flow into outgoing data flow

OR

Page 17: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

DFD-Process

NumberedName is verb/object phrase; Noun for high-level systems

OR1.0

Process1.0

Process

Page 18: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

DFD-SymbolsExternal EntitiesSources/destinations for dataOutside the systemName is Noun Phrase

Page 19: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

DFD-SymbolsCollector

Several data flows combine here

No processing occurs here

Page 20: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

DFD-SymbolsSeparator

Several data flows split from here

No processing

Page 21: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

DFD-SymbolsRing-sum operator

Shows two possible data flows

Only one is followed

Page 22: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

DFD-SymbolsAND operator

Shows two data flows

Both are followed

Page 23: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Types of DFD

Context diagram

Level 0 diagram

Detailed diagram

Page 24: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Context DiagramConsists of single

Process/System

Represents the system/process being analyzed

Name: Usually a Noun phrase

Page 25: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Context DiagramShow Context Only

Inputs/outputs

External Entities

No Data Stores

No flows between external entities

Page 26: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Context Diagram

Page 27: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Context Diagram

Registrar

DeanStudent

Faculty Member

Class RequestsSchedule

Student DataCourse Offerings

Class Counts

Faculty Load Sheets

Class Lists

AdmissionSystem

Page 28: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Diagram 01.0

ProcessRequests

3.0CreateStudent

File

4.0CreateClassFile

7.0ProduceFacultyLoad

Sheets

Registrar

Student

Faculty member Dean

ClassRegistration

C

2.0ProduceStudent

Schedule

ClassRequests

RequestStatus

Old Class Data

UpdatedClass Data

UpdatedStudentData

StudentRegistration

S6.0

ProduceClass

Counts

5.0Produce

ClassLists

StudentData

CourseOffering

Page 29: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

That is all for lecture 5, however, Due to time available discussedLevel 0 diagram in air, to be includedLater inshAllah

Page 30: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Page 31: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Registrar

DeanStudent

Faculty Member

Class RequestsSchedule

Student DataCourse Offerings

Class Counts

Faculty Load Sheets

Class Lists

AdmissionSystem

Page 32: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Page 33: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Diagram 01.1

ProcessRequests

3.0CreateStudent

File

4.0CreateClassFile

7.0ProduceFacultyLoad

Sheets

Registrar

Student

Faculty member Dean

ClassRegistration

C

2.0ProduceStudent

Schedule

ClassRequests

InvalidRequest

Old Class Data

UpdatedClass Data

UpdatedStudentData

StudentRegistration

S6.0

ProduceClass

Counts

5.0Produce

ClassLists

StudentData

CourseOffering

Page 34: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Detailed Diagram

Student

ClassRequests

InvalidRequest

1.1Edit

Requests

1.2CheckClass

CountsValid

Requests

ClassRegistrationC

1.4UpdateClassData

Upd

ated

Cla

ss D

ata

Old Class

DataAccepted

Request

1.3UpdateStudent

Data

StudentRegistration

S

Accepted

Request

Rejected Request

Page 35: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Page 36: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

Overview

Continue discussion on DFD

Discussion on Design Phase

Database Design and Data Models

Page 37: Database management systems   cs403 power point slides lecture 05

© Virtual University of Pakistan

DatabaseManagement

Systems

Lecture - 5