SlideShare a Scribd company logo
1 of 56
Phase 3: System Design- Data Design บทที่  10
Purpose of Database Design (1) ,[object Object],[object Object],[object Object],[object Object],[object Object]
Purpose of Database Design (2) ,[object Object],[object Object]
Data Modeling  แสดงรายละเอียดของข้อมูลในส่วนของ  definition, structure  และ  relationships  ซึ่งไม่สามารถแสดงใน  Data flow diagrams  และ  processing logic techniques  ที่เรียนไปแล้วในบทก่อน Data Modeling Data modeling  มี  3  ระดับได้แก่  conceptual data model, logical data model  และ   physical file and database.
Conceptual Data Modeling ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Process of Conceptual Data Model ,[object Object],[object Object],[object Object]
Sample conceptual data model diagram
Conceptual Data Model   ,[object Object],[object Object],[object Object],[object Object],[object Object],Deliverables and Outcome (1)
Deliverables and Outcome (2) ,[object Object],[object Object],[object Object],[object Object],Conceptual Data Model
จะสร้าง  conceptual data model  ได้อย่างไร ? (Gathering Information for Conceptual Data Modeling) ,[object Object],[object Object],[object Object],[object Object],[object Object]
Top-down perspectives (1)
INVOICE INVOICE   ITEM INVENTORY ITEM PRODUCT ORDER SUPPLIER ,[object Object],[object Object],[object Object],[object Object],[object Object],Top-down perspectives (2)
INVOICE includes INVOICE   ITEM contain INVENTORY ITEM RECIPE PRODUCT request ORDER places SUPPLIER bills Top-down perspectives (3)
INVOICE INVOICE   ITEM INVENTORY ITEM PRODUCT ORDER SUPPLIER ,[object Object],[object Object],[object Object],[object Object],[object Object],Top-down perspectives (2)
INVOICE includes INVOICE   ITEM contain INVENTORY ITEM RECIPE PRODUCT request ORDER places SUPPLIER bills Supplier_ID Supplier_Name Supplier_Addr Invoice_No Vendor_ID Invoice_date Paid? Amount_added Item_no Item_desc Stock on hand Minimum order Qty Inventory_level Product_ID Product_desc Order_No Order_date Order_Qty Top-down perspectives (4)
Practise: Guest  (To  recognize attributes for entity) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Practise: Guest ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Bottom-up perspectives (1) PVF CUSTOMER ORDER ORDER NO: 61384  CUSTOMER NO: 1273 NAME:  Contempory Designs ADDRESS:  123 Oak St. CITY STATE:-ZIP:  Austin,TX28384 ORDER DATE: 21/01/2006  PROMISED DATE: 31/01/2006 PRODUCT NO.  DESCRIPTION  QTY_ORDERED  UNIT PRICE M128  BookCase  4  200.00  B381  Cabinet  2  900.00  R210  Table  1  500.00
Bottom-up perspectives (1) PVF CUSTOMER ORDER ORDER NO: 61384  CUSTOMER NO: 1273 NAME:  Contempory Designs ADDRESS:  123 Oak St. CITY STATE:-ZIP:  Austin,TX28384 ORDER DATE: 21/01/2006  PROMISED DATE: 31/01/2006 PRODUCT NO.  DESCRIPTION  QTY_ORDERED  UNIT PRICE M128  BookCase  4  200.00  B381  Cabinet  2  900.00  R210  Table  1  500.00
Bottom-up perspectives (2) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],From the form : 1.  we determine that the following data must be kept in the database 2. Each order is from one customer 3.  An order can have multiple line items, each for one product
ORDER CUSTOMER PRODUCT Order_no Order_date Qty_order Promised_date Unit_price Prod_no Cust_no Prod_desc Cust_name Addr City_state places includes
กรณีที่ได้  relations  จาก หลาย  user interface
[object Object]
จากข้อมูลสรุปที่ได้จากขั้นตอนการวิเคราะห์ระบบ ,[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],การเขียน   conceptual data model
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Relational Database Model ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Relational Database Model ,[object Object],[object Object]
Normalization ,[object Object],The result of normalization is that every  non primary key attribute depends  upon the whole primary key
Steps in Normalization
การเปลี่ยน  E-R Diagrams  ให้เป็น  Relations Customer_ID Name C USTOMER Address City_State_ZIP Discount CUSTOMER( Customer_ID ,Name,Address,City_State_ZIP,Discount) ,[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],CUSTOMER( Customer_NO ,Name,Address, City_State,ZIP,Discount) ORDER( Order_No ,Order_date,Promised_date,Customer_NO) ,[object Object],[object Object]
[object Object],ORDER( Order_number ,Order_date,Promised_date) PRODUCT( Product_ID ,Description,Room,……….) ORDER_LINE( Order_Number,Product_ID ,Quantity_Ordered) ,[object Object],[object Object]
[object Object],EMPLOYEE( Emp_ID ,Name,Birthdate,Manager_ID) ITEM(Item_Number,Name,Cost) ITEM_BILL(Item_Number,Component_Number,Quantity) ,[object Object]
Physical Data Model  (1) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Physical Data Model  (2) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Denormalization
Data Types (1) ,[object Object],[object Object],[object Object],[object Object],[object Object]
Data Types (2) Data Coding : Pros – reduce storage space  -  increase integrity  (by restricting input to only  a few values)  Cons – more difficult to users to remember -  program must be written to decode    fields before display
Data Types (3) Data Integrity : The value of foreign key CUSTOMER_ID field within a CUST_ORDER must be limited to the set of CUSTOMER_ID values from the CUSTOMER relations. We would not want to accept an order for a non-existing or unknown CUSTOMER.
Data Types (4) Default Value : Null Value Control : - distinct from 0 or blank or any other value -  indicate that the value of the field is    missing or unknown  -  ต้องกำหนดว่า  field  ใดเป็น  null  ไม่ได้
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object]
Table Specification Name  Description   Type   Length  Value/Range  Notes/Remarks Table Name  : BankAccount  PK  : ACCT_NO  FK  :  ACCT_NO   เลขที่บัญชี  CHAR  7  0-9  Format: nnn-nnnn ธนาคารของลูกค้า  Unique Not Null   AMOUNT   ยอดเงินที่เบิก  NUMERIC   5 ,2   0 -10,000   Not Null Must <= BALANCE   BALANCE  ยอดเงินคงเหลือ  .....  ......  .........  ....... ในบัญชี ....  .....  ....  ....  ....  ....
[object Object],[object Object],[object Object],Denormalization  The process of  splitting  or  combining  normalized relations into physical tables based on affinity of use of rows and fields.  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],Customer_ID  Name Region Annual_Sales 1256  Rogers  Atlantic   10,000 1323  Temple  Pacific  20,000 1455  Gates  South   15,000 1626  Hope  Pacific  22,000 2433  Bates  South   14,000 2566  Bailey  Alantic  12,000 Customer_ID  Name Region Annual_Sales 1256  Rogers  Atlantic   10,000 2566  Bailey  Alantic  12,000 A_CUSTOMER Customer_ID  Name Region Annual_Sales 1323  Temple  Pacific  20,000 1626  Hope  Pacific  22,000 P_CUSTOMER Customer_ID  Name Region Annual_Sales 1455  Gates  South   15,000 2433  Bates  South   14,000 S_CUSTOMER
[object Object],Three common situations where denormalization may be used
[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object]
Business Rules (1) : ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Business Rules(2) :
Designing Controls for Files ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Designing Control for files
 
Exercise ข้อ  1.  เขียน  sequence dialogue diagram  จากจอภาพต่อไปนี้ Welcome Page ,[object Object],[object Object],[object Object],Product number verification Screen Product information selection   screen New Product Request screen Rental Status screen Rental History screen Rental Extension request screen Extension confirmation screen Enter new product comment screen View comment  Inventory review
Welcome page Product Information Rental  Information Product No Verification Product  Selection New Product request Rental status Rental history Enter new  Product comment View comment Inventory view Rental  extension Extension confirmation 0 3 2 2.1 2.2 2.3 3.1 3.2 2.1.1 2.1.2 2.2.1 3.1.1 3.1.1.1 1 1 2 2 2 2.1 2.2 2.1 3 3 3.1 3.1.1 system 1 เมนูหลัก 0

More Related Content

What's hot

Modelling System Requirements: Events & Things
Modelling System Requirements: Events & ThingsModelling System Requirements: Events & Things
Modelling System Requirements: Events & Thingswmomoni
 
Bank mangement system
Bank mangement systemBank mangement system
Bank mangement systemFaisalGhffar
 
Online Fitness Gym Project Presentation
Online Fitness Gym Project Presentation Online Fitness Gym Project Presentation
Online Fitness Gym Project Presentation Abhishek Patel
 
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptxSE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptxAmr E. Mohamed
 
Aps11 design interface
Aps11 design interfaceAps11 design interface
Aps11 design interfaceArif Rahman
 
Database Design
Database DesignDatabase Design
Database Designlearnt
 
Chapter12 designing databases
Chapter12 designing databasesChapter12 designing databases
Chapter12 designing databasesDhani Ahmad
 
Preparing for BIT – IT2301 Database Management Systems 2001d
Preparing for BIT – IT2301 Database Management Systems 2001dPreparing for BIT – IT2301 Database Management Systems 2001d
Preparing for BIT – IT2301 Database Management Systems 2001dGihan Wikramanayake
 
SSAD; TOOLS & TECHNIQUES
SSAD; TOOLS & TECHNIQUESSSAD; TOOLS & TECHNIQUES
SSAD; TOOLS & TECHNIQUESMalvika Bansal
 
Software Design Document
Software Design DocumentSoftware Design Document
Software Design DocumentNadia Nahar
 
Chapter10 conceptual data modeling
Chapter10 conceptual data modelingChapter10 conceptual data modeling
Chapter10 conceptual data modelingDhani Ahmad
 

What's hot (20)

Modelling System Requirements: Events & Things
Modelling System Requirements: Events & ThingsModelling System Requirements: Events & Things
Modelling System Requirements: Events & Things
 
Bank mangement system
Bank mangement systemBank mangement system
Bank mangement system
 
Analysis modelling
Analysis modellingAnalysis modelling
Analysis modelling
 
Online Fitness Gym Project Presentation
Online Fitness Gym Project Presentation Online Fitness Gym Project Presentation
Online Fitness Gym Project Presentation
 
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptxSE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
 
Aps11 design interface
Aps11 design interfaceAps11 design interface
Aps11 design interface
 
Database Design
Database DesignDatabase Design
Database Design
 
E workshop system design
E workshop system designE workshop system design
E workshop system design
 
Physical Design and Development
Physical Design and DevelopmentPhysical Design and Development
Physical Design and Development
 
Chapter12 designing databases
Chapter12 designing databasesChapter12 designing databases
Chapter12 designing databases
 
Input and output design
Input and output designInput and output design
Input and output design
 
Preparing for BIT – IT2301 Database Management Systems 2001d
Preparing for BIT – IT2301 Database Management Systems 2001dPreparing for BIT – IT2301 Database Management Systems 2001d
Preparing for BIT – IT2301 Database Management Systems 2001d
 
Analysis and design tool
Analysis and design toolAnalysis and design tool
Analysis and design tool
 
SSAD; TOOLS & TECHNIQUES
SSAD; TOOLS & TECHNIQUESSSAD; TOOLS & TECHNIQUES
SSAD; TOOLS & TECHNIQUES
 
Database Design
Database Design Database Design
Database Design
 
Software Design Document
Software Design DocumentSoftware Design Document
Software Design Document
 
Chapter10 conceptual data modeling
Chapter10 conceptual data modelingChapter10 conceptual data modeling
Chapter10 conceptual data modeling
 
D.dsgn + dbms
D.dsgn + dbmsD.dsgn + dbms
D.dsgn + dbms
 
UML Unit 01
UML Unit 01UML Unit 01
UML Unit 01
 
Block 1 ms-034 unit-2
Block 1 ms-034 unit-2Block 1 ms-034 unit-2
Block 1 ms-034 unit-2
 

Viewers also liked

Project management for nagw
Project management for nagwProject management for nagw
Project management for nagwRobin Hastings
 
Ec2009 ch05 online advertising
Ec2009 ch05 online advertisingEc2009 ch05 online advertising
Ec2009 ch05 online advertisingNuth Otanasap
 
The CMKXTREME Boat.Pps
The CMKXTREME Boat.PpsThe CMKXTREME Boat.Pps
The CMKXTREME Boat.Ppsguest6ab34f
 
Rancangan Perniagaan
Rancangan PerniagaanRancangan Perniagaan
Rancangan Perniagaannotarazi
 
ITEC Presentation for eWalk
ITEC Presentation for eWalkITEC Presentation for eWalk
ITEC Presentation for eWalktwaterman
 
Wave accounting-by-wang-ming
Wave accounting-by-wang-mingWave accounting-by-wang-ming
Wave accounting-by-wang-mingnotarazi
 
26022009 Skit Slides Web
26022009 Skit Slides Web26022009 Skit Slides Web
26022009 Skit Slides Webzaidi rozan
 
Blogging in Education
Blogging in EducationBlogging in Education
Blogging in EducationPaty.Savage
 
How To Become President Of The United States
How To Become President Of The United StatesHow To Become President Of The United States
How To Become President Of The United StatesJenny Hulbert
 
Extracció d’ADN d’un kiwi
Extracció d’ADN d’un kiwiExtracció d’ADN d’un kiwi
Extracció d’ADN d’un kiwiiriera5
 
Pesanan Rasulullah Untuk Pemuda
Pesanan Rasulullah Untuk PemudaPesanan Rasulullah Untuk Pemuda
Pesanan Rasulullah Untuk Pemudanotarazi
 
Solo tech presentation for nagw
Solo tech presentation for nagwSolo tech presentation for nagw
Solo tech presentation for nagwRobin Hastings
 

Viewers also liked (20)

Ch 3 E R Model
Ch 3  E R  ModelCh 3  E R  Model
Ch 3 E R Model
 
Project management for nagw
Project management for nagwProject management for nagw
Project management for nagw
 
Mãe
MãeMãe
Mãe
 
Ec2009 ch05 online advertising
Ec2009 ch05 online advertisingEc2009 ch05 online advertising
Ec2009 ch05 online advertising
 
The CMKXTREME Boat.Pps
The CMKXTREME Boat.PpsThe CMKXTREME Boat.Pps
The CMKXTREME Boat.Pps
 
Rancangan Perniagaan
Rancangan PerniagaanRancangan Perniagaan
Rancangan Perniagaan
 
ITEC Presentation for eWalk
ITEC Presentation for eWalkITEC Presentation for eWalk
ITEC Presentation for eWalk
 
Charlotte hubbard
Charlotte hubbardCharlotte hubbard
Charlotte hubbard
 
SA Chapter 12
SA Chapter 12SA Chapter 12
SA Chapter 12
 
American Ideals
American IdealsAmerican Ideals
American Ideals
 
my e-learning
my e-learningmy e-learning
my e-learning
 
Wave accounting-by-wang-ming
Wave accounting-by-wang-mingWave accounting-by-wang-ming
Wave accounting-by-wang-ming
 
26022009 Skit Slides Web
26022009 Skit Slides Web26022009 Skit Slides Web
26022009 Skit Slides Web
 
Blogging in Education
Blogging in EducationBlogging in Education
Blogging in Education
 
Lisa Campbell Ernst
Lisa Campbell ErnstLisa Campbell Ernst
Lisa Campbell Ernst
 
How To Become President Of The United States
How To Become President Of The United StatesHow To Become President Of The United States
How To Become President Of The United States
 
Extracció d’ADN d’un kiwi
Extracció d’ADN d’un kiwiExtracció d’ADN d’un kiwi
Extracció d’ADN d’un kiwi
 
Pesanan Rasulullah Untuk Pemuda
Pesanan Rasulullah Untuk PemudaPesanan Rasulullah Untuk Pemuda
Pesanan Rasulullah Untuk Pemuda
 
The Sun King
The Sun KingThe Sun King
The Sun King
 
Solo tech presentation for nagw
Solo tech presentation for nagwSolo tech presentation for nagw
Solo tech presentation for nagw
 

Similar to SA Chapter 10

Nunes database
Nunes databaseNunes database
Nunes databaseRohini17
 
Data quality and bi
Data quality and biData quality and bi
Data quality and bijeffd00
 
Data Modeling PPT
Data Modeling PPTData Modeling PPT
Data Modeling PPTTrinath
 
topic 2 data flow daigram topic-converted.pdf
topic 2 data flow daigram topic-converted.pdftopic 2 data flow daigram topic-converted.pdf
topic 2 data flow daigram topic-converted.pdftahir427002
 
Inventory management system
Inventory management systemInventory management system
Inventory management systempavanwalecha
 
ERD merupakan suatu diagram yang berisi komponen- komponen himpunan entitas ...
ERD merupakan suatu diagram yang berisi komponen- 	komponen himpunan entitas ...ERD merupakan suatu diagram yang berisi komponen- 	komponen himpunan entitas ...
ERD merupakan suatu diagram yang berisi komponen- komponen himpunan entitas ...huraitera
 
Running Head PROJECT DELIVERABLE 31PROJECT DELIVERABLE 310.docx
Running Head PROJECT DELIVERABLE 31PROJECT DELIVERABLE 310.docxRunning Head PROJECT DELIVERABLE 31PROJECT DELIVERABLE 310.docx
Running Head PROJECT DELIVERABLE 31PROJECT DELIVERABLE 310.docxtodd581
 
Bca examination 2017 dbms
Bca examination 2017 dbmsBca examination 2017 dbms
Bca examination 2017 dbmsAnjaan Gajendra
 
It 302 computerized accounting (week 2) - sharifah
It 302   computerized accounting (week 2) - sharifahIt 302   computerized accounting (week 2) - sharifah
It 302 computerized accounting (week 2) - sharifahalish sha
 
Introduction to Dimesional Modelling
Introduction to Dimesional ModellingIntroduction to Dimesional Modelling
Introduction to Dimesional ModellingAshish Chandwani
 
online blood bank system design
online blood bank system designonline blood bank system design
online blood bank system designRohit Jawale
 
software_engg-chap-03.ppt
software_engg-chap-03.pptsoftware_engg-chap-03.ppt
software_engg-chap-03.ppt064ChetanWani
 

Similar to SA Chapter 10 (20)

Nunes database
Nunes databaseNunes database
Nunes database
 
Dimensional Modelling
Dimensional ModellingDimensional Modelling
Dimensional Modelling
 
Data quality and bi
Data quality and biData quality and bi
Data quality and bi
 
Data Modelling..pptx
Data Modelling..pptxData Modelling..pptx
Data Modelling..pptx
 
Data Modeling PPT
Data Modeling PPTData Modeling PPT
Data Modeling PPT
 
topic 2 data flow daigram topic-converted.pdf
topic 2 data flow daigram topic-converted.pdftopic 2 data flow daigram topic-converted.pdf
topic 2 data flow daigram topic-converted.pdf
 
inventory management system
 inventory management system inventory management system
inventory management system
 
Inventory management system
Inventory management systemInventory management system
Inventory management system
 
DB design
DB designDB design
DB design
 
ERD_01.ppt
ERD_01.pptERD_01.ppt
ERD_01.ppt
 
ERD_01.ppt
ERD_01.pptERD_01.ppt
ERD_01.ppt
 
ERD merupakan suatu diagram yang berisi komponen- komponen himpunan entitas ...
ERD merupakan suatu diagram yang berisi komponen- 	komponen himpunan entitas ...ERD merupakan suatu diagram yang berisi komponen- 	komponen himpunan entitas ...
ERD merupakan suatu diagram yang berisi komponen- komponen himpunan entitas ...
 
Rdbms
RdbmsRdbms
Rdbms
 
Running Head PROJECT DELIVERABLE 31PROJECT DELIVERABLE 310.docx
Running Head PROJECT DELIVERABLE 31PROJECT DELIVERABLE 310.docxRunning Head PROJECT DELIVERABLE 31PROJECT DELIVERABLE 310.docx
Running Head PROJECT DELIVERABLE 31PROJECT DELIVERABLE 310.docx
 
Bca examination 2017 dbms
Bca examination 2017 dbmsBca examination 2017 dbms
Bca examination 2017 dbms
 
It 302 computerized accounting (week 2) - sharifah
It 302   computerized accounting (week 2) - sharifahIt 302   computerized accounting (week 2) - sharifah
It 302 computerized accounting (week 2) - sharifah
 
Introduction to Dimesional Modelling
Introduction to Dimesional ModellingIntroduction to Dimesional Modelling
Introduction to Dimesional Modelling
 
online blood bank system design
online blood bank system designonline blood bank system design
online blood bank system design
 
Final
FinalFinal
Final
 
software_engg-chap-03.ppt
software_engg-chap-03.pptsoftware_engg-chap-03.ppt
software_engg-chap-03.ppt
 

More from Nuth Otanasap

กองทุนท่าจีน
กองทุนท่าจีนกองทุนท่าจีน
กองทุนท่าจีนNuth Otanasap
 
มาตรฐานผลการเรียนรู้
มาตรฐานผลการเรียนรู้มาตรฐานผลการเรียนรู้
มาตรฐานผลการเรียนรู้Nuth Otanasap
 
Ec2009 ch01 overview of electronic commerce
Ec2009 ch01 overview of electronic commerceEc2009 ch01 overview of electronic commerce
Ec2009 ch01 overview of electronic commerceNuth Otanasap
 
Ec2009 ch14 creating and launching
Ec2009 ch14 creating and launchingEc2009 ch14 creating and launching
Ec2009 ch14 creating and launchingNuth Otanasap
 
Ec2009 ch15 e commerce strategy
Ec2009 ch15 e commerce strategyEc2009 ch15 e commerce strategy
Ec2009 ch15 e commerce strategyNuth Otanasap
 
Ec2009 ch12 legal ethical and social
Ec2009 ch12 legal ethical and socialEc2009 ch12 legal ethical and social
Ec2009 ch12 legal ethical and socialNuth Otanasap
 
Ec2009 ch11 electronic payment systems
Ec2009 ch11 electronic payment systemsEc2009 ch11 electronic payment systems
Ec2009 ch11 electronic payment systemsNuth Otanasap
 
Ec2009 ch10 e commerce security
Ec2009 ch10 e commerce securityEc2009 ch10 e commerce security
Ec2009 ch10 e commerce securityNuth Otanasap
 
Ec2009 ch09 auctions
Ec2009 ch09 auctionsEc2009 ch09 auctions
Ec2009 ch09 auctionsNuth Otanasap
 
Ec2009 ch08 mobile commerce and pervasive computing
Ec2009 ch08 mobile commerce and pervasive computingEc2009 ch08 mobile commerce and pervasive computing
Ec2009 ch08 mobile commerce and pervasive computingNuth Otanasap
 
Ec2009 ch07 e government e-learning e-supply chains collaborative commerce an...
Ec2009 ch07 e government e-learning e-supply chains collaborative commerce an...Ec2009 ch07 e government e-learning e-supply chains collaborative commerce an...
Ec2009 ch07 e government e-learning e-supply chains collaborative commerce an...Nuth Otanasap
 

More from Nuth Otanasap (20)

กองทุนท่าจีน
กองทุนท่าจีนกองทุนท่าจีน
กองทุนท่าจีน
 
มาตรฐานผลการเรียนรู้
มาตรฐานผลการเรียนรู้มาตรฐานผลการเรียนรู้
มาตรฐานผลการเรียนรู้
 
SA Chapter 14
SA Chapter 14SA Chapter 14
SA Chapter 14
 
SA Chapter 13
SA Chapter 13SA Chapter 13
SA Chapter 13
 
SA Chapter 11
SA Chapter 11SA Chapter 11
SA Chapter 11
 
SA Chapter 9
SA Chapter 9SA Chapter 9
SA Chapter 9
 
SA Chapter 8
SA Chapter 8SA Chapter 8
SA Chapter 8
 
SA Chapter 6
SA Chapter 6SA Chapter 6
SA Chapter 6
 
SA Chapter 5
SA Chapter 5SA Chapter 5
SA Chapter 5
 
SA Chapter 4
SA Chapter 4SA Chapter 4
SA Chapter 4
 
SA Chapter 3
SA Chapter 3SA Chapter 3
SA Chapter 3
 
Ec2009 ch01 overview of electronic commerce
Ec2009 ch01 overview of electronic commerceEc2009 ch01 overview of electronic commerce
Ec2009 ch01 overview of electronic commerce
 
Ec2009 ch14 creating and launching
Ec2009 ch14 creating and launchingEc2009 ch14 creating and launching
Ec2009 ch14 creating and launching
 
Ec2009 ch15 e commerce strategy
Ec2009 ch15 e commerce strategyEc2009 ch15 e commerce strategy
Ec2009 ch15 e commerce strategy
 
Ec2009 ch12 legal ethical and social
Ec2009 ch12 legal ethical and socialEc2009 ch12 legal ethical and social
Ec2009 ch12 legal ethical and social
 
Ec2009 ch11 electronic payment systems
Ec2009 ch11 electronic payment systemsEc2009 ch11 electronic payment systems
Ec2009 ch11 electronic payment systems
 
Ec2009 ch10 e commerce security
Ec2009 ch10 e commerce securityEc2009 ch10 e commerce security
Ec2009 ch10 e commerce security
 
Ec2009 ch09 auctions
Ec2009 ch09 auctionsEc2009 ch09 auctions
Ec2009 ch09 auctions
 
Ec2009 ch08 mobile commerce and pervasive computing
Ec2009 ch08 mobile commerce and pervasive computingEc2009 ch08 mobile commerce and pervasive computing
Ec2009 ch08 mobile commerce and pervasive computing
 
Ec2009 ch07 e government e-learning e-supply chains collaborative commerce an...
Ec2009 ch07 e government e-learning e-supply chains collaborative commerce an...Ec2009 ch07 e government e-learning e-supply chains collaborative commerce an...
Ec2009 ch07 e government e-learning e-supply chains collaborative commerce an...
 

Recently uploaded

INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataBabyAnnMotar
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Dust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEDust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEaurabinda banchhor
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxPresentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxRosabel UA
 

Recently uploaded (20)

INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped data
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Dust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEDust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSE
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxPresentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptx
 

SA Chapter 10

  • 1. Phase 3: System Design- Data Design บทที่ 10
  • 2.
  • 3.
  • 4. Data Modeling แสดงรายละเอียดของข้อมูลในส่วนของ definition, structure และ relationships ซึ่งไม่สามารถแสดงใน Data flow diagrams และ processing logic techniques ที่เรียนไปแล้วในบทก่อน Data Modeling Data modeling มี 3 ระดับได้แก่ conceptual data model, logical data model และ physical file and database.
  • 5.
  • 6.
  • 7. Sample conceptual data model diagram
  • 8.
  • 9.
  • 10.
  • 12.
  • 13. INVOICE includes INVOICE ITEM contain INVENTORY ITEM RECIPE PRODUCT request ORDER places SUPPLIER bills Top-down perspectives (3)
  • 14.
  • 15. INVOICE includes INVOICE ITEM contain INVENTORY ITEM RECIPE PRODUCT request ORDER places SUPPLIER bills Supplier_ID Supplier_Name Supplier_Addr Invoice_No Vendor_ID Invoice_date Paid? Amount_added Item_no Item_desc Stock on hand Minimum order Qty Inventory_level Product_ID Product_desc Order_No Order_date Order_Qty Top-down perspectives (4)
  • 16.
  • 17.
  • 18. Bottom-up perspectives (1) PVF CUSTOMER ORDER ORDER NO: 61384 CUSTOMER NO: 1273 NAME: Contempory Designs ADDRESS: 123 Oak St. CITY STATE:-ZIP: Austin,TX28384 ORDER DATE: 21/01/2006 PROMISED DATE: 31/01/2006 PRODUCT NO. DESCRIPTION QTY_ORDERED UNIT PRICE M128 BookCase 4 200.00 B381 Cabinet 2 900.00 R210 Table 1 500.00
  • 19. Bottom-up perspectives (1) PVF CUSTOMER ORDER ORDER NO: 61384 CUSTOMER NO: 1273 NAME: Contempory Designs ADDRESS: 123 Oak St. CITY STATE:-ZIP: Austin,TX28384 ORDER DATE: 21/01/2006 PROMISED DATE: 31/01/2006 PRODUCT NO. DESCRIPTION QTY_ORDERED UNIT PRICE M128 BookCase 4 200.00 B381 Cabinet 2 900.00 R210 Table 1 500.00
  • 20.
  • 21. ORDER CUSTOMER PRODUCT Order_no Order_date Qty_order Promised_date Unit_price Prod_no Cust_no Prod_desc Cust_name Addr City_state places includes
  • 22. กรณีที่ได้ relations จาก หลาย user interface
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39. Data Types (2) Data Coding : Pros – reduce storage space - increase integrity (by restricting input to only a few values) Cons – more difficult to users to remember - program must be written to decode fields before display
  • 40. Data Types (3) Data Integrity : The value of foreign key CUSTOMER_ID field within a CUST_ORDER must be limited to the set of CUSTOMER_ID values from the CUSTOMER relations. We would not want to accept an order for a non-existing or unknown CUSTOMER.
  • 41. Data Types (4) Default Value : Null Value Control : - distinct from 0 or blank or any other value - indicate that the value of the field is missing or unknown - ต้องกำหนดว่า field ใดเป็น null ไม่ได้
  • 42.
  • 43.
  • 44. Table Specification Name Description Type Length Value/Range Notes/Remarks Table Name : BankAccount PK : ACCT_NO FK : ACCT_NO เลขที่บัญชี CHAR 7 0-9 Format: nnn-nnnn ธนาคารของลูกค้า Unique Not Null AMOUNT ยอดเงินที่เบิก NUMERIC 5 ,2 0 -10,000 Not Null Must <= BALANCE BALANCE ยอดเงินคงเหลือ ..... ...... ......... ....... ในบัญชี .... ..... .... .... .... ....
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 52.
  • 54.  
  • 55.
  • 56. Welcome page Product Information Rental Information Product No Verification Product Selection New Product request Rental status Rental history Enter new Product comment View comment Inventory view Rental extension Extension confirmation 0 3 2 2.1 2.2 2.3 3.1 3.2 2.1.1 2.1.2 2.2.1 3.1.1 3.1.1.1 1 1 2 2 2 2.1 2.2 2.1 3 3 3.1 3.1.1 system 1 เมนูหลัก 0