Professional Documents
Culture Documents
DATA MODELING
AND
DATABASE DESIGN
09/23/22
Learning Objectives
2
09/23/22
Designing and Implementing a Database System
3
09/23/22
Designing and Implementing a Database System
4
09/23/22
The REA Data Model
5
09/23/22
The REA Data Model
6
Operation and
Planning
maintenance
Requirements
Data Implementation
modelin analysis
g occurs
here
Design Coding
09/23/22
The REA Data Model
7
09/23/22
Types of Entities
8
09/23/22
Types of Entities
9
09/23/22
Types of Entities
10
09/23/22
Types of Entities
11
09/23/22
Developing an REA Diagram
12
09/23/22
Developing an REA Diagram
13
09/23/22
Basic REA template
14
Resource A GET
Inflow Participant Internal Agent
Resource A
Economic
Duality
GIVE
Resource B Outflow Participant Internal Agent
Resource B
09/23/22
Sample REA diagram
15
Participant
Economic
Customer
Duality
Participant
Cash
Cash Stock-flow Participant Cashier
Receipts
09/23/22
REA Diagram, Step 1:
Identify Economic Exchange Events
16
09/23/22
REA Diagram, Step 1:
Identify Economic Exchange Events
17
09/23/22
REA Diagram, Step 2:
Identify Resources and Agents
18
09/23/22
REA Diagram, Step 2:
Identify Resources and Agents
19
09/23/22
REA Diagram, Step 3:
Include Commitment Events
20
09/23/22
Decomposing Sales into Orders and Sales
21
Customer
Inventory- (1,N) (1,1) Participant (0,N) Customer
Orders
Orders
(0,N) (1,1)
(0,1) Participant
(0,N)
Inventory- Leads to
Inventory (0,N) Salesperson
Sales (0,N)
(0,1)
(1,N)
Participant
(1,1)
Sales
09/23/22
REA Diagram, Step 4:
Determine Cardinalities
22
09/23/22
REA Diagram, Step 4:
Determine Cardinalities
23
(0, N)
Sales Made to Customer
09/23/22
REA Diagram, Step 4:
Determine Cardinalities
25
(1,1) (0, N)
Sales Made to Customer
09/23/22
REA Diagram, Step 4:
Determine Cardinalities
26
(0, N)
Sales Made to Customer
09/23/22
REA Diagram, Step 4:
Determine Cardinalities
28
(1,1) (0, N)
Sales Made to Customer
09/23/22
REA Diagram, Step 4:
Determine Cardinalities
29
09/23/22
Relationships
between Entities
30
09/23/22
Different types of relationships
31
Cash
Sales (0,1) (1,1)
Receipts
09/23/22
Different types of relationships
32
Cash
Sales (0,N) (1,1)
Receipts
09/23/22
Different types of relationships
33
Cash
Sales (0,1) (1,N)
Receipts
09/23/22
Different types of relationships
34
Cash
Sales (0,N) (1,N)
Receipts
09/23/22
Entity-Relationship Diagram
35
09/23/22
Sample E-R Diagrams
36
Managed
Employers By
Supervisors
Part of
Manages
Departments
09/23/22
Sample E-R Diagram based on REA model
37
(0,N) (1,1)
Participant
(0,N)
Purchases-
Cash Vendor
Disbursements
Participant (0,N)
(1,N) (1,1)
Cash
Cash (0,N) Stockflow (1,1) (1,1) Participant (0,N) Cashier
Disbursement
09/23/22
Implementing an
38 REA Diagram in a
Relational Database
09/23/22
Implementing an REA Diagram in a
Relational Database
39
09/23/22
Implementing an REA model
40
(0,N) (1,1)
Participant
(0,N)
Purchases-
Cash Vendor
Disbursements
Participant (0,N)
(1,N) (1,1)
Cash
Cash (0,N) Stockflow (1,1) (1,1) Participant (0,N) Cashier
Disbursement
09/23/22
Create Tables
41
1. Inventory 6. Cash
disbursements
2. Purchases
7. Cash
3. Employees
8. Purchases-
4. Vendors inventory
5. Cashier 9. Purchases-cash
disbursements
09/23/22
Assign Attributes
for Each Table
42
09/23/22
Implement One-to-One and One-to-Many
Relationships
43
09/23/22
Implement One-to-One and One-to-Many
Relationships
44
09/23/22
Documentation of
Business Practices
45
09/23/22
Documentation of
Business Practices
46
Cash Sales-
(1, N) Cash Receipts (0, N) Sales
Receipts
09/23/22
Documentation of
Business Practices
47
Cash Sales-
(1, N) Cash Receipts (0, N) Sales
Receipts
09/23/22
Organization Specificity
of REA Diagrams
48
09/23/22
Extracting Information
From the AIS
49
09/23/22
Extracting Information
From the AIS
50
09/23/22
Extracting Information
From the AIS
52
09/23/22
Extracting Information
From the AIS
53
THE END OF
CHAPTER 3
09/23/22