REA analysis and E-R diagramming

22

description

REA analysis and E-R diagramming. Database Applications. Phase 1 Flat Files. Phase 2 Event-Driven Database. Phase 3 REA-Model Database. Limitations: Not widely used; Requires detailed analysis. Limitations: Redundant data; Anomalies. Limitations: Loss of non-economic information. - PowerPoint PPT Presentation

Transcript of REA analysis and E-R diagramming

Page 1: REA analysis and E-R diagramming
Page 2: REA analysis and E-R diagramming

Phase 1Flat Files

Phase 2Event-Driven Database

Phase 3REA-ModelDatabase

Limitations:Redundant data;Anomalies

Limitations:Loss of non-economic information

Limitations:Not widely used;Requires detailed analysis

Database Applications

Page 3: REA analysis and E-R diagramming

Tool for designing a database system to meet the needs of the organization or the system - if you are not considering an

enterprise wide system (ERP). REA modeling (ERA modeling, REA

analysis, etc.) is a method of analyzing and thinking about the system

E-R diagramming is a means of diagramming what the database should look like based upon the analysis above.

Page 4: REA analysis and E-R diagramming

What we want to do is follow a structured approach for designing databases.

The basic element in a database is called an entity - What do you think an entity might be

relative to an ACCESS database?

Page 5: REA analysis and E-R diagramming

Entities Relations Events Resources Agents Locations Concatenated keys Cardinality

Page 6: REA analysis and E-R diagramming

REA modeling is a hot topic in systems circles It has gone through several name/content variations

ERA modeling (more of a focus on events - typically this is the way it is done - but the name is not as easy to remember)

REAL Resources Events Agents Locations

Some books combine REA and E-R diagramming and some make no distinction IT CAN GET CONFUSING

Page 7: REA analysis and E-R diagramming

We focus on events, which are things that get recorded in our system

For each event we will possibly have The event itself Resources consumed or obtained Internal agents (entities) External agents (entities) Perhaps a location

The reason that the word entities is in parentheses is that with this type of modeling, all five of these things are referred to as “entities”.

This sounds a lot like narratives, DFDs and flowcharts, huh?

Page 8: REA analysis and E-R diagramming

Think back to the purchase order in the SUA that we looked at a few days ago…

Page 9: REA analysis and E-R diagramming

Where

Who

What

Page 10: REA analysis and E-R diagramming

Sometimes called REA diagramming (a specific form of E-R)

It uses three symbols A rectangle

An entity (but not the same as in DFDs and flowcharts

A diamond A relationship

An oval An attribute

Page 11: REA analysis and E-R diagramming

Event

ResourceInternalagent

Location(if needed)

ExternalAgent

(if needed)

Event

ResourceInternalagent

Location(if needed)

ExternalAgent

(if needed)

These are allconsideredentities

Page 12: REA analysis and E-R diagramming

SellMerchandise

MerchandiseSalesperson

Customer

ReceiveCustomerpayment

Cash

CashRegister

decreases

increases

Takes place at

Takes place at

Collects payment

Sold by

Sold to

Received from

Resultsin

Now we add relations

Page 13: REA analysis and E-R diagramming

SellMerchandise

MerchandiseSalesperson

CashRegister

Customer

ReceiveCustomerpayment

Cash

decreases

increases

Takes place at

Collects payment

Sold by

Sold to

Received fromTakes place atR

esul

ts

in

Page 14: REA analysis and E-R diagramming

The REA Data Model

Resources Events Agents

Give-To- Get Duality

Page 15: REA analysis and E-R diagramming

The REA Data Model

Resources Events Agents

Resources: Those things

that have economic value

to the firm.

Page 16: REA analysis and E-R diagramming

The REA Data Model

Resources Events Agents

Events: Various

Business Activities

Page 17: REA analysis and E-R diagramming

The REA Data Model

Resources Events Agents

Agents: People and

Organizations that participate

in events.

Page 18: REA analysis and E-R diagramming

Entity

Relationship -Describes how two entities relate

Attribute -Specifies an entity (a record)

-Resource - such as merchandise or cash-Person (what we referred to as entities in DFDs)-Location (such as the cash register)

-Note that we never specified this before-Event

Page 19: REA analysis and E-R diagramming

There is a distinction between REA modeling and E-R diagramming! This distinction is not really important,

though. E-R diagrams can be used to

graphically show the REA model This type of modeling is useful for

designing databases Notice that the

database/relationships design for the Ch03.mdb database looks very much like the ER diagram

Page 20: REA analysis and E-R diagramming
Page 21: REA analysis and E-R diagramming

tblCashDisbursementCheck No.

tblPurchaseOrderPO No.

tblCashDisbursementInventoryReceipt

Inv Rec No. + Chk No

tblInventoryReceiptInv Rec No

tblMaterialsInventoryInv. Stck No

tblVendorVendor No.

tblPOInventoryReceipt

PO No. + Inv Stck No.

CheckNo.

InvReceipt

No.

VendorNo.

PONo.

PONo.

InvStockNo.

Date

Inventory data

Vendor data

Page 22: REA analysis and E-R diagramming

tblCashDisbursementCheck No.

tblPurchaseOrderPO No.

tblCashDisbursementInventoryReceipt

Inv Rec No. + Chk No

tblInventoryReceiptInv Rec No

tblMaterialsInventoryInv. Stck No

tblVendorVendor No.

tblPOInventoryReceipt

PO No. + Inv Stck No.

CheckNo.

InvReceipt

No.

VendorNo.

PONo.

PONo.

InvStockNo.

Date

Inventory data

Vendor data