SlideShare a Scribd company logo
1 of 34
Copyright © 2016 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Chapter 7
Data Flow Diagramming
7-2
Outline
• Learning objectives
• Nature and purpose of DFDs
• DFD symbols
• Leveling and balancing
• Database design
• Normal forms
7-3
Learning objectives
1) Explain the symbols and design
considerations associated with DFDs.
2) Compare and contrast flowcharts and DFDs
with regard to purpose, content, structure,
and use in accounting information systems.
3) Discuss ways DFDs are used in AIS work.
4) Construct a leveled set of DFDs.
5) Design normalized database tables from a
DFD.
7-4
Nature and purpose of DFDs
• Not as widely used as flowcharts in
accounting practice
• Two main purposes
– Understanding a business process
– Understanding the relational database that
underlies the AIS
• Focus on data
7-5
DFD symbols
process
external
entity
data flow
data store
7-6
DFD symbols
customer order
1.0
Take customer
order
customer
order database
7-7
Leveling and balancing
• Data flow diagrams are prepared in
leveled sets.
• Each level reveals more detail than the
one before it.
• Levels must be balanced, which means
that external entities and data flows at the
boundary cannot “disappear” between
levels.
7-8
Leveling and balancing
• Level names
– Context diagram
– Level Zero diagram
– Level One diagrams
– Level Two diagrams
– And so on. . .
7-9
Leveling and
balancing
• Context
diagram
• Highest level
view of the
system
• Exactly one in a
leveled set
• Exactly one
process
• One or more
external entities
• No data stores
Customer
0
Order taking
process
Customer
order
Invoice
7-10
Leveling and
balancing
• Level Zero
diagram
• Exactly one in a
leveled set
• More detail than
the context
diagram
• Preserve data
flows at the
boundary
Customer
Customer
order
Invoice
1.0
Process
customer
order.
2.0
Bill customer.
Processed
customer
order
7-11
Leveling and
balancing
• Level One
diagram
• May be more
than one in a
leveled set
• More detail than
the Level Zero
diagram
• Each Level One
focused on a
single “bubble”
from Level Zero
• Preserve data
flows at the
boundary
See the example on
the next slide,
which “explodes”
Process 1.0
(Process customer
order) from the
Level Zero diagram.
7-12
Leveling and balancing
Customer
Customer
order
1.1
Verify
customer
order. Verified
customer
order
1.2
Evaluate
customer
credit.
Customer database
Credit
inquiry
Credit
decision
Processed
customer order
7-13
Leveling and balancing
• Processes are decomposed (“exploded”)
until they are primitive.
• Processes may be decomposed to
different levels.
• Numbering conventions
– Level One diagram of Process 2.0: 2.1, 2.2
– Level Two diagram of Process 1.2: 1.2.1,
1.2.2
7-14
Database design
• Objects
• Terminology
• Normal forms
7-15
Database design
• Objects: tables
– Every relational database must include at
least one table.
– Most will include multiple tables
– Organization
• Fields (columns)
• Records (rows)
– See the example on the next slide.
7-16
Database design
Student table in design view
Student table in datasheet view
7-17
Database design
• Objects: queries
– Sets of instructions that examine current data
in tables and / or other queries
– Output data according to the instructions
– Can include simple computations (e.g., total,
average)
– See the example on the next slide
7-18
Database design
Query in design view
Query in datasheet view
7-19
Database design
• Objects: forms
– Allow a user to interact with a database even
if they know nothing about design and
structure
– Two uses: data input, data lookup
– See the example on the next slide
7-20
Database design
Form in design view Form in form view
7-21
Database design
• Objects: reports
– Well formatted output of a relational database
– Can be based on tables and / or queries
– Can incorporate simple calculations
– See the example on the next slide
7-22
Database design
Report in report view
(Design view not shown)
7-23
Database design
• Terminology
– Primary key: a field in a table that uniquely
identifies every record in that table
– Foreign key: a primary key in one table that
is included in another table for linking
purposes
– Compound primary key: two or more fields
in a table that together comprise its primary
key
7-24
Database design
• Terminology
Junction table
• A table that joins together two separate tables.
• Required when the two separate tables have a “many-
to-many” relationship
– Every student may enroll in many classes.
– Every class has many students.
• Named by joining the separate table names
– Student table
– Class table
– Student / class table
• See the illustration on the next slide
This is the
junction table.
7-25
Database design
Relationship grid
7-26
Database design
• Normal forms
Table characteristics that ensure a relational
database is organized as efficiently and
effectively as possible
• Minimize space allocations
• Facilitate searches
• Establish relationships between tables
7-27
Database design
• First normal form
(1NF)
– Eliminates repeating
groups
• Second normal form
(2NF)
– Eliminates repeating
groups
– Eliminates redundant
data
• Third normal form
(3NF)
– Eliminates repeating
groups
– Eliminates redundant
data
– Eliminates columns
not dependent on the
primary key
7-28
Database design
• The next few slides show you how to start
with a “flat file” (such as a spreadsheet) and
create normalized database tables.
• With practice, you’ll be able to design
normalized tables “from scratch.”
• The following example is drawn from the 23
January 2014 post on Dr. Hurt’s AIS blog.
7-29
Normal forms
This data array is a “flat file” comprising two fields and
five records. It is not normalized, as the “courses”
field includes repeating groups of data (i.e., two
courses in one field).
Student ID Courses
1026 Acc 343, Psy 200
1053 Acc 343, Eng 117
1221 Bus 281, Mat 146
1270 Acc 343, Eng 117
1397 Bus 281, Psy 200
7-30
• To put the array in 1NF, we need to
eliminate repeating groups.
Normal forms
Student ID Prefix Number Prefix Number
1026 Acc 343 Psy 200
1053 Acc 343 Eng 117
1221 Bus 281 Mat 146
1270 Acc 343 Eng 117
1397 Bus 281 Psy 200
Course 1 Course 2
This array, while not fully normalized, is closer to
that state. Note that we could search for specific
course prefixes and / or numbers more easily than in
the flat file.
7-31
• To put the data in 2NF, we need to
eliminate redundant data.
Normal forms
Student table
Student ID
1026
1053
1221
1270
1397
Prefix Number
Acc 343
Bus 281
Psy 200
Eng 117
Mat 146
Course table
Neither table has repeating groups or redundant data;
however, we’re missing key information: which
students are in which courses?
7-32
• Junction table
– Completes 2NF by
marrying data from
two other tables
– Requires a compound
primary key
– Many-to-many
relationship
• Each student can take
many courses.
• Each course can have
many students.
Student ID Prefix Number
1026 Acc 343
1026 Psy 200
1053 Acc 343
1053 Eng 117
1221 Bus 281
1221 Mat 146
1270 Acc 343
1270 Eng 117
1397 Bus 281
1397 Psy 200
Student / course table
Normal forms
7-33
• To put the data in 3NF, we must ensure that
each table contains only fields that give us
more information about the primary key.
– Student table: last name, first name, area code,
phone number
– Course table: course title, instructor, building,
classroom, section number
– Student / course table: probably does not need
any information beyond the primary keys of the
two other tables
Normal forms
7-34

More Related Content

What's hot

NORMALIZATION - BIS 1204: Data and Information Management I
NORMALIZATION - BIS 1204: Data and Information Management I NORMALIZATION - BIS 1204: Data and Information Management I
NORMALIZATION - BIS 1204: Data and Information Management I Mukalele Rogers
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management SystemMian Abdul Raheem
 
Structured system analysis and design
Structured system analysis and design Structured system analysis and design
Structured system analysis and design Jayant Dalvi
 
Importance of Normalization
Importance of NormalizationImportance of Normalization
Importance of NormalizationShwe Yee
 
Week 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data ModelWeek 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data Modeloudesign
 
overview of database concept
overview of database conceptoverview of database concept
overview of database conceptgourav kottawar
 
Intro To DataBase
Intro To DataBaseIntro To DataBase
Intro To DataBaseDevMix
 
Chapter 6 Database SC025 2017/2018
Chapter 6 Database SC025 2017/2018Chapter 6 Database SC025 2017/2018
Chapter 6 Database SC025 2017/2018Fizaril Amzari Omar
 
Creating and editing a database
Creating and editing a databaseCreating and editing a database
Creating and editing a databasecrystalpullen
 
Normalization of database_tables_chapter_4
Normalization of database_tables_chapter_4Normalization of database_tables_chapter_4
Normalization of database_tables_chapter_4Farhan Chishti
 
Relational database revised
Relational database revisedRelational database revised
Relational database revisedmnodalo
 
Intro to relational model
Intro to relational modelIntro to relational model
Intro to relational modelATS SBGI MIRAJ
 

What's hot (18)

NORMALIZATION - BIS 1204: Data and Information Management I
NORMALIZATION - BIS 1204: Data and Information Management I NORMALIZATION - BIS 1204: Data and Information Management I
NORMALIZATION - BIS 1204: Data and Information Management I
 
Database intro
Database introDatabase intro
Database intro
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management System
 
Data concepts
Data conceptsData concepts
Data concepts
 
Structured system analysis and design
Structured system analysis and design Structured system analysis and design
Structured system analysis and design
 
demo2.ppt
demo2.pptdemo2.ppt
demo2.ppt
 
Importance of Normalization
Importance of NormalizationImportance of Normalization
Importance of Normalization
 
RDBMS concepts
RDBMS conceptsRDBMS concepts
RDBMS concepts
 
Week 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data ModelWeek 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data Model
 
overview of database concept
overview of database conceptoverview of database concept
overview of database concept
 
Intro To DataBase
Intro To DataBaseIntro To DataBase
Intro To DataBase
 
Chapter 6 Database SC025 2017/2018
Chapter 6 Database SC025 2017/2018Chapter 6 Database SC025 2017/2018
Chapter 6 Database SC025 2017/2018
 
Database Part 2
Database Part 2Database Part 2
Database Part 2
 
Creating and editing a database
Creating and editing a databaseCreating and editing a database
Creating and editing a database
 
Normalization of database_tables_chapter_4
Normalization of database_tables_chapter_4Normalization of database_tables_chapter_4
Normalization of database_tables_chapter_4
 
DBMS
DBMSDBMS
DBMS
 
Relational database revised
Relational database revisedRelational database revised
Relational database revised
 
Intro to relational model
Intro to relational modelIntro to relational model
Intro to relational model
 

Viewers also liked

Ais Romney 2006 Slides 02 Business Process
Ais Romney 2006 Slides 02 Business ProcessAis Romney 2006 Slides 02 Business Process
Ais Romney 2006 Slides 02 Business Processsharing notes123
 
Ais Romney 2006 Slides 04 Relational Databases
Ais Romney 2006 Slides 04 Relational DatabasesAis Romney 2006 Slides 04 Relational Databases
Ais Romney 2006 Slides 04 Relational DatabasesSharing Slides Training
 
Ais Romney 2006 Slides 09 Auditing Computer Based Is
Ais Romney 2006 Slides 09 Auditing Computer Based IsAis Romney 2006 Slides 09 Auditing Computer Based Is
Ais Romney 2006 Slides 09 Auditing Computer Based Issharing notes123
 
System flow charts @ doms
System flow charts @  domsSystem flow charts @  doms
System flow charts @ domsBabasab Patil
 
Transaction cycles @ ppt dom s
Transaction cycles @ ppt dom sTransaction cycles @ ppt dom s
Transaction cycles @ ppt dom sBabasab Patil
 
Introduction to Transaction Processing Chapter No. 2
Introduction to Transaction Processing   Chapter No. 2Introduction to Transaction Processing   Chapter No. 2
Introduction to Transaction Processing Chapter No. 2Qamar Farooq
 
Ais Romney 2006 Slides 14 General Ledger And Reporting System
Ais Romney 2006 Slides 14 General Ledger And Reporting SystemAis Romney 2006 Slides 14 General Ledger And Reporting System
Ais Romney 2006 Slides 14 General Ledger And Reporting Systemsharing notes123
 

Viewers also liked (8)

Ais Romney 2006 Slides 02 Business Process
Ais Romney 2006 Slides 02 Business ProcessAis Romney 2006 Slides 02 Business Process
Ais Romney 2006 Slides 02 Business Process
 
Ais Romney 2006 Slides 04 Relational Databases
Ais Romney 2006 Slides 04 Relational DatabasesAis Romney 2006 Slides 04 Relational Databases
Ais Romney 2006 Slides 04 Relational Databases
 
Ais Romney 2006 Slides 09 Auditing Computer Based Is
Ais Romney 2006 Slides 09 Auditing Computer Based IsAis Romney 2006 Slides 09 Auditing Computer Based Is
Ais Romney 2006 Slides 09 Auditing Computer Based Is
 
Ais Romney 2006 Slides 01 Overview
Ais Romney 2006 Slides 01 OverviewAis Romney 2006 Slides 01 Overview
Ais Romney 2006 Slides 01 Overview
 
System flow charts @ doms
System flow charts @  domsSystem flow charts @  doms
System flow charts @ doms
 
Transaction cycles @ ppt dom s
Transaction cycles @ ppt dom sTransaction cycles @ ppt dom s
Transaction cycles @ ppt dom s
 
Introduction to Transaction Processing Chapter No. 2
Introduction to Transaction Processing   Chapter No. 2Introduction to Transaction Processing   Chapter No. 2
Introduction to Transaction Processing Chapter No. 2
 
Ais Romney 2006 Slides 14 General Ledger And Reporting System
Ais Romney 2006 Slides 14 General Ledger And Reporting SystemAis Romney 2006 Slides 14 General Ledger And Reporting System
Ais Romney 2006 Slides 14 General Ledger And Reporting System
 

Similar to Optimize DFD and database design chapter

Chapter – 3 Database Design P-I.pdf
Chapter – 3 Database Design P-I.pdfChapter – 3 Database Design P-I.pdf
Chapter – 3 Database Design P-I.pdfTamiratDejene1
 
CIS 111 STUDY Introduction Education--cis111study.com
CIS 111 STUDY Introduction Education--cis111study.comCIS 111 STUDY Introduction Education--cis111study.com
CIS 111 STUDY Introduction Education--cis111study.comclaric262
 
CIS 111 STUDY Achievement Education--cis111 study.com
CIS 111 STUDY Achievement Education--cis111 study.comCIS 111 STUDY Achievement Education--cis111 study.com
CIS 111 STUDY Achievement Education--cis111 study.comclaric153
 
CIS 111 STUDY Redefined Education--cis111study.com
CIS 111 STUDY Redefined Education--cis111study.comCIS 111 STUDY Redefined Education--cis111study.com
CIS 111 STUDY Redefined Education--cis111study.comclaric192
 
CIS 111 STUDY Become Exceptional--cis111study.com
CIS 111 STUDY Become Exceptional--cis111study.comCIS 111 STUDY Become Exceptional--cis111study.com
CIS 111 STUDY Become Exceptional--cis111study.comclaric102
 
CIS 111 STUDY Education Counseling--cis111study.com
 CIS 111 STUDY Education Counseling--cis111study.com CIS 111 STUDY Education Counseling--cis111study.com
CIS 111 STUDY Education Counseling--cis111study.comshanaabe12
 
Chapter 9 Data Design .pptxInformation Technology Project Management
Chapter 9 Data Design .pptxInformation Technology Project ManagementChapter 9 Data Design .pptxInformation Technology Project Management
Chapter 9 Data Design .pptxInformation Technology Project ManagementAxmedMaxamuudYoonis
 
Week 2 - Database System Development Lifecycle-old.pptx
Week 2 - Database System Development Lifecycle-old.pptxWeek 2 - Database System Development Lifecycle-old.pptx
Week 2 - Database System Development Lifecycle-old.pptxNurulIzrin
 
Data_base.pptx
Data_base.pptxData_base.pptx
Data_base.pptxMohit89650
 
chapter09-120827115409-phpapp01.pdf
chapter09-120827115409-phpapp01.pdfchapter09-120827115409-phpapp01.pdf
chapter09-120827115409-phpapp01.pdfAxmedMaxamuud6
 
CIS 111 STUDY Inspiring Innovation--cis111study.com
CIS 111 STUDY Inspiring Innovation--cis111study.comCIS 111 STUDY Inspiring Innovation--cis111study.com
CIS 111 STUDY Inspiring Innovation--cis111study.comKeatonJennings90
 
CIS 111 STUDY Education Your Life--cis111study
CIS 111 STUDY Education Your Life--cis111studyCIS 111 STUDY Education Your Life--cis111study
CIS 111 STUDY Education Your Life--cis111studythomashard44
 
CIS 111 STUDY Education Planning--cis111study.com
CIS 111 STUDY Education Planning--cis111study.comCIS 111 STUDY Education Planning--cis111study.com
CIS 111 STUDY Education Planning--cis111study.comagathachristie299
 
CIS 111 STUDY Knowledge Specialist--cis111study.com
CIS 111 STUDY Knowledge Specialist--cis111study.comCIS 111 STUDY Knowledge Specialist--cis111study.com
CIS 111 STUDY Knowledge Specialist--cis111study.comchrysanthemu86
 
Mc leod9e ch06 database management systems
Mc leod9e ch06 database management systemsMc leod9e ch06 database management systems
Mc leod9e ch06 database management systemssellyhood
 
Understanding about relational database m-square systems inc
Understanding about relational database m-square systems incUnderstanding about relational database m-square systems inc
Understanding about relational database m-square systems incMuthu Natarajan
 
DB Design.ppt
DB Design.pptDB Design.ppt
DB Design.pptJakeParas
 

Similar to Optimize DFD and database design chapter (20)

Chapter – 3 Database Design P-I.pdf
Chapter – 3 Database Design P-I.pdfChapter – 3 Database Design P-I.pdf
Chapter – 3 Database Design P-I.pdf
 
Database_Introduction.pdf
Database_Introduction.pdfDatabase_Introduction.pdf
Database_Introduction.pdf
 
CIS 111 STUDY Introduction Education--cis111study.com
CIS 111 STUDY Introduction Education--cis111study.comCIS 111 STUDY Introduction Education--cis111study.com
CIS 111 STUDY Introduction Education--cis111study.com
 
CIS 111 STUDY Achievement Education--cis111 study.com
CIS 111 STUDY Achievement Education--cis111 study.comCIS 111 STUDY Achievement Education--cis111 study.com
CIS 111 STUDY Achievement Education--cis111 study.com
 
CIS 111 STUDY Redefined Education--cis111study.com
CIS 111 STUDY Redefined Education--cis111study.comCIS 111 STUDY Redefined Education--cis111study.com
CIS 111 STUDY Redefined Education--cis111study.com
 
CIS 111 STUDY Become Exceptional--cis111study.com
CIS 111 STUDY Become Exceptional--cis111study.comCIS 111 STUDY Become Exceptional--cis111study.com
CIS 111 STUDY Become Exceptional--cis111study.com
 
CIS 111 STUDY Education Counseling--cis111study.com
 CIS 111 STUDY Education Counseling--cis111study.com CIS 111 STUDY Education Counseling--cis111study.com
CIS 111 STUDY Education Counseling--cis111study.com
 
Chapter 9 Data Design .pptxInformation Technology Project Management
Chapter 9 Data Design .pptxInformation Technology Project ManagementChapter 9 Data Design .pptxInformation Technology Project Management
Chapter 9 Data Design .pptxInformation Technology Project Management
 
Week 2 - Database System Development Lifecycle-old.pptx
Week 2 - Database System Development Lifecycle-old.pptxWeek 2 - Database System Development Lifecycle-old.pptx
Week 2 - Database System Development Lifecycle-old.pptx
 
Data_base.pptx
Data_base.pptxData_base.pptx
Data_base.pptx
 
chapter09-120827115409-phpapp01.pdf
chapter09-120827115409-phpapp01.pdfchapter09-120827115409-phpapp01.pdf
chapter09-120827115409-phpapp01.pdf
 
CIS 111 STUDY Inspiring Innovation--cis111study.com
CIS 111 STUDY Inspiring Innovation--cis111study.comCIS 111 STUDY Inspiring Innovation--cis111study.com
CIS 111 STUDY Inspiring Innovation--cis111study.com
 
CIS 111 STUDY Education Your Life--cis111study
CIS 111 STUDY Education Your Life--cis111studyCIS 111 STUDY Education Your Life--cis111study
CIS 111 STUDY Education Your Life--cis111study
 
CIS 111 STUDY Education Planning--cis111study.com
CIS 111 STUDY Education Planning--cis111study.comCIS 111 STUDY Education Planning--cis111study.com
CIS 111 STUDY Education Planning--cis111study.com
 
CIS 111 STUDY Knowledge Specialist--cis111study.com
CIS 111 STUDY Knowledge Specialist--cis111study.comCIS 111 STUDY Knowledge Specialist--cis111study.com
CIS 111 STUDY Knowledge Specialist--cis111study.com
 
Access 05
Access 05Access 05
Access 05
 
Mc leod9e ch06 database management systems
Mc leod9e ch06 database management systemsMc leod9e ch06 database management systems
Mc leod9e ch06 database management systems
 
Understanding about relational database m-square systems inc
Understanding about relational database m-square systems incUnderstanding about relational database m-square systems inc
Understanding about relational database m-square systems inc
 
week3.ppt
week3.pptweek3.ppt
week3.ppt
 
DB Design.ppt
DB Design.pptDB Design.ppt
DB Design.ppt
 

More from Awais Ahmed

More from Awais Ahmed (20)

Chapter 4
Chapter 4Chapter 4
Chapter 4
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Chapter 2 leadership
Chapter 2 leadershipChapter 2 leadership
Chapter 2 leadership
 
Chp1 The Foundations Of Entrepreneurship
Chp1 The Foundations Of EntrepreneurshipChp1 The Foundations Of Entrepreneurship
Chp1 The Foundations Of Entrepreneurship
 
Sppt chap017
Sppt chap017Sppt chap017
Sppt chap017
 
Sppt chap016
Sppt chap016Sppt chap016
Sppt chap016
 
Sppt chap015
Sppt chap015Sppt chap015
Sppt chap015
 
Sppt chap014
Sppt chap014Sppt chap014
Sppt chap014
 
Sppt chap013
Sppt chap013Sppt chap013
Sppt chap013
 
Sppt chap012
Sppt chap012Sppt chap012
Sppt chap012
 
Sppt chap011
Sppt chap011Sppt chap011
Sppt chap011
 
Sppt chap010
Sppt chap010Sppt chap010
Sppt chap010
 
Sppt chap009
Sppt chap009Sppt chap009
Sppt chap009
 
Sppt chap008
Sppt chap008Sppt chap008
Sppt chap008
 
Sppt chap006
Sppt chap006Sppt chap006
Sppt chap006
 
Sppt chap005
Sppt chap005Sppt chap005
Sppt chap005
 
Sppt chap004
Sppt chap004Sppt chap004
Sppt chap004
 
Sppt chap003
Sppt chap003Sppt chap003
Sppt chap003
 

Recently uploaded

Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Lucknow
 
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一3sw2qly1
 
AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsAlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsThierry TROUIN ☁
 
Denver Web Design brochure for public viewing
Denver Web Design brochure for public viewingDenver Web Design brochure for public viewing
Denver Web Design brochure for public viewingbigorange77
 
Russian Call girls in Dubai +971563133746 Dubai Call girls
Russian  Call girls in Dubai +971563133746 Dubai  Call girlsRussian  Call girls in Dubai +971563133746 Dubai  Call girls
Russian Call girls in Dubai +971563133746 Dubai Call girlsstephieert
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一Fs
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607dollysharma2066
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Dana Luther
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一Fs
 
Call Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on Delivery
Call Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on DeliveryCall Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on Delivery
Call Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on Deliverybabeytanya
 
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Roomdivyansh0kumar0
 
Complet Documnetation for Smart Assistant Application for Disabled Person
Complet Documnetation   for Smart Assistant Application for Disabled PersonComplet Documnetation   for Smart Assistant Application for Disabled Person
Complet Documnetation for Smart Assistant Application for Disabled Personfurqan222004
 
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts servicesonalikaur4
 
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 

Recently uploaded (20)

Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
 
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
 
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
 
AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsAlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with Flows
 
Denver Web Design brochure for public viewing
Denver Web Design brochure for public viewingDenver Web Design brochure for public viewing
Denver Web Design brochure for public viewing
 
Russian Call girls in Dubai +971563133746 Dubai Call girls
Russian  Call girls in Dubai +971563133746 Dubai  Call girlsRussian  Call girls in Dubai +971563133746 Dubai  Call girls
Russian Call girls in Dubai +971563133746 Dubai Call girls
 
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
 
Call Girls Service Dwarka @9999965857 Delhi 🫦 No Advance VVIP 🍎 SERVICE
Call Girls Service Dwarka @9999965857 Delhi 🫦 No Advance  VVIP 🍎 SERVICECall Girls Service Dwarka @9999965857 Delhi 🫦 No Advance  VVIP 🍎 SERVICE
Call Girls Service Dwarka @9999965857 Delhi 🫦 No Advance VVIP 🍎 SERVICE
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
 
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
 
Call Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on Delivery
Call Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on DeliveryCall Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on Delivery
Call Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on Delivery
 
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
 
Complet Documnetation for Smart Assistant Application for Disabled Person
Complet Documnetation   for Smart Assistant Application for Disabled PersonComplet Documnetation   for Smart Assistant Application for Disabled Person
Complet Documnetation for Smart Assistant Application for Disabled Person
 
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
 
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
 
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
 
sasti delhi Call Girls in munirka 🔝 9953056974 🔝 escort Service-
sasti delhi Call Girls in munirka 🔝 9953056974 🔝 escort Service-sasti delhi Call Girls in munirka 🔝 9953056974 🔝 escort Service-
sasti delhi Call Girls in munirka 🔝 9953056974 🔝 escort Service-
 

Optimize DFD and database design chapter

  • 1. Copyright © 2016 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education. Chapter 7 Data Flow Diagramming
  • 2. 7-2 Outline • Learning objectives • Nature and purpose of DFDs • DFD symbols • Leveling and balancing • Database design • Normal forms
  • 3. 7-3 Learning objectives 1) Explain the symbols and design considerations associated with DFDs. 2) Compare and contrast flowcharts and DFDs with regard to purpose, content, structure, and use in accounting information systems. 3) Discuss ways DFDs are used in AIS work. 4) Construct a leveled set of DFDs. 5) Design normalized database tables from a DFD.
  • 4. 7-4 Nature and purpose of DFDs • Not as widely used as flowcharts in accounting practice • Two main purposes – Understanding a business process – Understanding the relational database that underlies the AIS • Focus on data
  • 6. 7-6 DFD symbols customer order 1.0 Take customer order customer order database
  • 7. 7-7 Leveling and balancing • Data flow diagrams are prepared in leveled sets. • Each level reveals more detail than the one before it. • Levels must be balanced, which means that external entities and data flows at the boundary cannot “disappear” between levels.
  • 8. 7-8 Leveling and balancing • Level names – Context diagram – Level Zero diagram – Level One diagrams – Level Two diagrams – And so on. . .
  • 9. 7-9 Leveling and balancing • Context diagram • Highest level view of the system • Exactly one in a leveled set • Exactly one process • One or more external entities • No data stores Customer 0 Order taking process Customer order Invoice
  • 10. 7-10 Leveling and balancing • Level Zero diagram • Exactly one in a leveled set • More detail than the context diagram • Preserve data flows at the boundary Customer Customer order Invoice 1.0 Process customer order. 2.0 Bill customer. Processed customer order
  • 11. 7-11 Leveling and balancing • Level One diagram • May be more than one in a leveled set • More detail than the Level Zero diagram • Each Level One focused on a single “bubble” from Level Zero • Preserve data flows at the boundary See the example on the next slide, which “explodes” Process 1.0 (Process customer order) from the Level Zero diagram.
  • 12. 7-12 Leveling and balancing Customer Customer order 1.1 Verify customer order. Verified customer order 1.2 Evaluate customer credit. Customer database Credit inquiry Credit decision Processed customer order
  • 13. 7-13 Leveling and balancing • Processes are decomposed (“exploded”) until they are primitive. • Processes may be decomposed to different levels. • Numbering conventions – Level One diagram of Process 2.0: 2.1, 2.2 – Level Two diagram of Process 1.2: 1.2.1, 1.2.2
  • 14. 7-14 Database design • Objects • Terminology • Normal forms
  • 15. 7-15 Database design • Objects: tables – Every relational database must include at least one table. – Most will include multiple tables – Organization • Fields (columns) • Records (rows) – See the example on the next slide.
  • 16. 7-16 Database design Student table in design view Student table in datasheet view
  • 17. 7-17 Database design • Objects: queries – Sets of instructions that examine current data in tables and / or other queries – Output data according to the instructions – Can include simple computations (e.g., total, average) – See the example on the next slide
  • 18. 7-18 Database design Query in design view Query in datasheet view
  • 19. 7-19 Database design • Objects: forms – Allow a user to interact with a database even if they know nothing about design and structure – Two uses: data input, data lookup – See the example on the next slide
  • 20. 7-20 Database design Form in design view Form in form view
  • 21. 7-21 Database design • Objects: reports – Well formatted output of a relational database – Can be based on tables and / or queries – Can incorporate simple calculations – See the example on the next slide
  • 22. 7-22 Database design Report in report view (Design view not shown)
  • 23. 7-23 Database design • Terminology – Primary key: a field in a table that uniquely identifies every record in that table – Foreign key: a primary key in one table that is included in another table for linking purposes – Compound primary key: two or more fields in a table that together comprise its primary key
  • 24. 7-24 Database design • Terminology Junction table • A table that joins together two separate tables. • Required when the two separate tables have a “many- to-many” relationship – Every student may enroll in many classes. – Every class has many students. • Named by joining the separate table names – Student table – Class table – Student / class table • See the illustration on the next slide This is the junction table.
  • 26. 7-26 Database design • Normal forms Table characteristics that ensure a relational database is organized as efficiently and effectively as possible • Minimize space allocations • Facilitate searches • Establish relationships between tables
  • 27. 7-27 Database design • First normal form (1NF) – Eliminates repeating groups • Second normal form (2NF) – Eliminates repeating groups – Eliminates redundant data • Third normal form (3NF) – Eliminates repeating groups – Eliminates redundant data – Eliminates columns not dependent on the primary key
  • 28. 7-28 Database design • The next few slides show you how to start with a “flat file” (such as a spreadsheet) and create normalized database tables. • With practice, you’ll be able to design normalized tables “from scratch.” • The following example is drawn from the 23 January 2014 post on Dr. Hurt’s AIS blog.
  • 29. 7-29 Normal forms This data array is a “flat file” comprising two fields and five records. It is not normalized, as the “courses” field includes repeating groups of data (i.e., two courses in one field). Student ID Courses 1026 Acc 343, Psy 200 1053 Acc 343, Eng 117 1221 Bus 281, Mat 146 1270 Acc 343, Eng 117 1397 Bus 281, Psy 200
  • 30. 7-30 • To put the array in 1NF, we need to eliminate repeating groups. Normal forms Student ID Prefix Number Prefix Number 1026 Acc 343 Psy 200 1053 Acc 343 Eng 117 1221 Bus 281 Mat 146 1270 Acc 343 Eng 117 1397 Bus 281 Psy 200 Course 1 Course 2 This array, while not fully normalized, is closer to that state. Note that we could search for specific course prefixes and / or numbers more easily than in the flat file.
  • 31. 7-31 • To put the data in 2NF, we need to eliminate redundant data. Normal forms Student table Student ID 1026 1053 1221 1270 1397 Prefix Number Acc 343 Bus 281 Psy 200 Eng 117 Mat 146 Course table Neither table has repeating groups or redundant data; however, we’re missing key information: which students are in which courses?
  • 32. 7-32 • Junction table – Completes 2NF by marrying data from two other tables – Requires a compound primary key – Many-to-many relationship • Each student can take many courses. • Each course can have many students. Student ID Prefix Number 1026 Acc 343 1026 Psy 200 1053 Acc 343 1053 Eng 117 1221 Bus 281 1221 Mat 146 1270 Acc 343 1270 Eng 117 1397 Bus 281 1397 Psy 200 Student / course table Normal forms
  • 33. 7-33 • To put the data in 3NF, we must ensure that each table contains only fields that give us more information about the primary key. – Student table: last name, first name, area code, phone number – Course table: course title, instructor, building, classroom, section number – Student / course table: probably does not need any information beyond the primary keys of the two other tables Normal forms
  • 34. 7-34