database management system
DESCRIPTION
Database Management System. Adisak Intana Lecturer. Chapter 3: Database Life Cycle. Table Contents. System Development Life Cycle. Database Development Life Cycle. การออกแบบฐานข อมูลในระดับแนวคิด. การเลือกระบบจัดการฐานขอมูล. Data Flow Diagram - DFD. Table Contents. - PowerPoint PPT PresentationTRANSCRIPT
Database Management SystemDatabase Management System
Adisak Intana Adisak Intana LecturerLecturer
Chapter 3: Chapter 3: Database Life CycleDatabase Life Cycle
2Database Life CycleDatabase Life Cycle
Table ContentsTable Contents
System Development Life Cycle
Database Development Life Cycle
การเลื�อกระบบจั�ดการฐานขอมู�ลื การออกแบบฐานขอมู�ลืในระด�บแนวคิ�ด
Data Flow Diagram - DFD
3Database Life CycleDatabase Life Cycle
Table ContentsTable Contents
System Development Life Cycle
Database Development Life Cycle
การเลื�อกระบบจั�ดการฐานขอมู�ลื การออกแบบฐานขอมู�ลืในระด�บแนวคิ�ด
Data Flow Diagram - DFD
4Database Life CycleDatabase Life Cycle
System Development Life CycleSystem Development Life Cycle
Feasibility SFeasibility Studytudy
- - ศึ�กษาคิวามูเป็�นไป็ได�ในการพั�ฒนาระบบงาน ป็ระเมู�นต้�นทุ%นศึ�กษาคิวามูเป็�นไป็ได�ในการพั�ฒนาระบบงาน ป็ระเมู�นต้�นทุ%น ววางแผนการทุ'างานางแผนการทุ'างาน
System AnalysisSystem Analysis
- - เก(บรวบรวมูข�อมู�ลื คิวามูต้�องการผ��ใช้� ก'าหนดขอบเขต้ของเก(บรวบรวมูข�อมู�ลื คิวามูต้�องการผ��ใช้� ก'าหนดขอบเขต้ของงานงาน
System DesignSystem Design
-- ออกแบบระบบออกแบบระบบ PrototypingPrototyping
- - สร�างระบบงานต้�นแบบน'าไป็สร�างระบบงานต้�นแบบน'าไป็ทุดลืองใช้� ถ้�ามู-ข�อผ�ดพัลืาดกลื�บทุดลืองใช้� ถ้�ามู-ข�อผ�ดพัลืาดกลื�บไป็ทุ'า ไป็ทุ'า
Requirement Collection and AnalysisRequirement Collection and Analysis
5Database Life CycleDatabase Life Cycle
System Development Life CycleSystem Development Life Cycle
ImplementationImplementation
- - ทุดลืองน'าระบบทุ-.เสร(จัแลื�วไป็ใช้�งานทุดลืองน'าระบบทุ-.เสร(จัแลื�วไป็ใช้�งาน Validation and TestingValidation and Testing
- - ป็ระเมู�นผลื แลืะต้รวจัสอบคิวามูถ้�กต้�องป็ระเมู�นผลื แลืะต้รวจัสอบคิวามูถ้�กต้�อง OpereaOpereationtion
-- น'าไป็ใช้�งานจัร�งน'าไป็ใช้�งานจัร�ง
6Database Life CycleDatabase Life Cycle
Table ContentsTable Contents
System Development Life Cycle
Database Development Life Cycle
การเลื�อกระบบจั�ดการฐานขอมู�ลื การออกแบบฐานขอมู�ลืในระด�บแนวคิ�ด
Data Flow Diagram - DFD
8Database Life CycleDatabase Life Cycle
Table ContentsTable Contents
System Development Life Cycle
Database Development Life Cycle
การเลื�อกระบบจั�ดการฐานขอมู�ลื การออกแบบฐานขอมู�ลืในระด�บแนวคิ�ด
Data Flow Diagram - DFD
9Database Life CycleDatabase Life Cycle
การออกแบบฐานข�อมู�ลืในระด�บการออกแบบฐานข�อมู�ลืในระด�บแนวคิ�ดแนวคิ�ด
o EntityEntity
- - พั�จัารณา พั�จัารณา EntityEntity แลืะ แลืะ AttributeAttributeo RelationshipRelationship
- - พั�จัารณาคิวามูส�มูพั�นธ์1ระหว2างพั�จัารณาคิวามูส�มูพั�นธ์1ระหว2าง EntityEntityo DomainDomain
- - พั�จัารณาพั�จัารณา Domain Domain ของแต้2ลืะของแต้2ลืะ AttributeAttributeo NormalizationNormalization
- - จั�ดต้ารางให�อยู่�2ในร�ป็ จั�ดต้ารางให�อยู่�2ในร�ป็ 33NFNF
10Database Life CycleDatabase Life Cycle
Table ContentsTable Contents
System Development Life Cycle
Database Development Life Cycle
การเลื�อกระบบจั�ดการฐานขอมู�ลื การออกแบบฐานขอมู�ลืในระด�บแนวคิ�ด
Data Flow Diagram - DFD
11Database Life CycleDatabase Life Cycle
การเลื�อกระบบจั�ดการฐานข�อมู�ลืการเลื�อกระบบจั�ดการฐานข�อมู�ลื
o โคิรงสร�างฐานข�อมู�ลืโคิรงสร�างฐานข�อมู�ลืo เคิร�.องมู�อส'าหร�บช้2วยู่ในการพั�ฒนาเคิร�.องมู�อส'าหร�บช้2วยู่ในการพั�ฒนา
ระบบงานระบบงานo ต้�นทุ%น ต้�นทุ%น Hardware Hardware แลืะ แลืะ SoftwareSoftware
o การบ'าร%งร�กษา แลืะบร�การหลื�งการขายู่การบ'าร%งร�กษา แลืะบร�การหลื�งการขายู่o บ%คิลืลืากร แลืะการจั�ดอบรมูบ%คิลืลืากร แลืะการจั�ดอบรมูo เป็�นทุ-.ร��จั�กแลืะน�ยู่มูใช้�เป็�นทุ-.ร��จั�กแลืะน�ยู่มูใช้�
12Database Life CycleDatabase Life Cycle
Table ContentsTable Contents
System Development Life Cycle
Database Development Life Cycle
การเลื�อกระบบจั�ดการฐานขอมู�ลื การออกแบบฐานขอมู�ลืในระด�บแนวคิ�ด
Data Flow Diagram - DFD
13Database Life CycleDatabase Life Cycle
DFD symbols– External entities (sources and sinks)– Data Stores– Data Flows– Processesa
Types of diagrams Step by step approach Levels of diagram Rules
Data Flow Diagram - DFD
14Database Life CycleDatabase Life Cycle
Some Rules for External EntitiesSome 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) provide new information to system
e.g. Customers, managers
ExternalEntities
ExternalEntities
Gane&Sarson
Yourdon
15Database Life CycleDatabase Life Cycle
Some Rules for Data StoresSome Rules for Data Stores
Internal to the system Somewhere that store data Include in system if the
system processes transform the data– Store, Add, Delete, Update
Data Stores
Gane&Sarson
Yourdon
Data Stores
16Database Life CycleDatabase Life Cycle
Data in motion, moving from one place to another in the system– From external entity
(source) to system– From system to external
entity (sink)– From internal symbol to
internal symbol, but always either start or end at a process
Data Flow
Gane&Sarson
Yourdon
Data Flow
Some Rules for Data StoresSome Rules for Data Stores
17Database Life CycleDatabase Life Cycle
Some Rules for ProcessesSome Rules for Processes
Always internal to system Law of conservation of data:
#1: Data stays at rest unless
moved by a process.
#2: Processes cannot consume or create data– Must have at least 1 input data flow – Must have at least 1 output data flow – Should have sufficient inputs to create outputs
Gane&Sarson
Yourdon
0.
Processes
Process NO.
Process NO.
Processes
18Database Life CycleDatabase Life Cycle
Types of DiagramsTypes of Diagrams
Context Diagram– A data flow diagram (DFD) of the scope of an organizational
system that shows the system boundaries, external entities that interact with the system and the major information flows between the entities and the system
Level-O Diagram– A data flow diagram (DFD) that represents a system’s major
processes, data flows and data stores at a high level of detail
19Database Life CycleDatabase Life Cycle
DFD Rules—Context DiagramDFD Rules—Context Diagram
One process, numbered 0. Main data flows depicated No internal data stores are shown
20Database Life CycleDatabase Life Cycle
Context diagram of Hoosier Burger’s Context diagram of Hoosier Burger’s Food ordering systemFood ordering system
21Database Life CycleDatabase Life Cycle
Level-1 DFD of Hoosier Burger’s food Level-1 DFD of Hoosier Burger’s food ordering systemordering system
22Database Life CycleDatabase Life Cycle
• Logical process models describe processes without suggesting how they are conducted
• Physical models include information about how the processes are implemented
Levels Of DiagramLevels Of Diagram
23Database Life CycleDatabase Life Cycle
2.1ตรวจสอบแบบฟอร�มการลง
ทะเบ�ยนส.น. 7
ส.น. 7 ส.น. 7 ท��ถู�กต�อง
2.1ตรวจสอบบ�ตรลงทะเบ�ยนว�ชา
เร�ยน
บ�ตรลงทะเบ�ยนว�ชาเร�ยน บ�ตรลงทะเบ�ยนว�ชาเร�ยนท��ถู�กต�อง
24Database Life CycleDatabase Life Cycle
Creating Data Flow DiagramsCreating Data Flow Diagrams
General steps:1. Create a preliminary Context Diagram2. Identify Use Cases, i.e. the ways in which users
most commonly use the system3. Create DFD fragments for each use case4. Create a Level 1 diagram from fragments5. Decompose to Level 2,3,…6. Go to step 1 and revise as necessary7. Validate DFDs with users.