Professional Documents
Culture Documents
business reality
REA model
REA data model is a framework specifically designed for
building accounting information systems in a shared data
environment based on the E-R diagram technique.
files.
8
Symbols used in E-R/REA diagram
DEVELOPING A REA/E-R DIAGRAM
Developing a REA diagram for a specific
transaction cycle consists of the following steps:
1. Identify the database entities
2. Identify the relationships and cardinalities b/n
entities
3. Prepare entity relationship REA diagram
4. Identify attributes of database entities
5. Create database tables and records to populate
the database
Identify entities
Entity is any class of object about which data is
collected.
Events
Resources
Agents
1. Identify the Event Entities in the REA Model
Events are phenomena that effect changes
in resources.
a source of detailed data in the REA approach
to databases
Events fall into two groups:
Economic – increases or decreases resources
- impact an organization’s financial statements
Support /business – control, planning, and
other management activities; but do not
directly affect resources
- impact an organization in a value-added way
Example: Typical activities/events in the revenue
cycle include:
Verify availability
Take customer order
Ship product
Bill customer
Collect payment
2. Identify the Resource and Agent entities
Resources – the ‘assets’ of the company
objects of economic value in the give-get exchanges
REA model does not include some traditional
accounting assets/artifacts / object made by human
that can be generated from other primary data
for example, accounts receivables
Identification of resources that are affected by those
events involves determining the resource(s):
reduced by the give event.
increased by the get event.
that are affected by a commitment event.
Agents can be individuals or departments.
Participate in events
Affect resources
Have discretionary /unrestricted power to
use or dispose of resources
Can be inside or outside the organization
Clerks
Production workers
Customers
Suppliers, vendors
Departments, teams
3. Determine Relationship and Cardinalities between Entities
Relationship – is an association that exists between
one or more entities based on a key attribute.
Cardinality – the number of instances/
occurrences/record/raw of one entity can be linked to
a single specific instance/record/raw of another
related entity.
Cardinalities can be used to create normalized
relational database tables
Cardinalities – are often expressed as a pair of
numbers. Eg. (0,1), (0,M), (1,1), (1,M)
The first number is the minimum, and the second
number is the maximum.
Minimum cardinality of a relationship can be either 0 or 1.
Maximum cardinality of a relationship can be either 1 or N.
The minimum and maximum cardinalities are not arbitrarily
chosen by the database designer, but are business rules
(policies and procedures).
There are three basic types of relationships between
entities, depending on the maximum cardinality
associated with each entity. They are:
1. A one-to-one relationship (1:1)
2. A one-to-many relationship (1:N)
- is Many to One (1:N) in opposite direction.
3. A many-to-many relationship (M:N)
Example in determining cardinalities
A given sales transaction can only be linked to one
customer. But a given customer MAY be linked to
many sales events in a given period of time..
(0, N) (1,1)
Sales Made to Customer
18
The Co. in which you are modeling has a policy of
purchasing the same type of inventory from
multiple suppliers in order to avoid becoming
dependent on a single supplier and in order to get
the best prices. In addition to this each vendor may
supply one or more inventory types to the
company.
(1, N) (1,M)
Vendors Supply Inventories
19
Assume that a company has 1000 employees, but
only 100 of them are sales staff. Assume also that
each sales person is assigned a company car, but
non-sales staff are not.
(0, N) (1,1)
Employees Assigned Company car
20
Develop REA diagram
In drawing REA diagram it is useful to divide the paper
in to 3 columns: one column for each type of entity.
Resources –are placed on the left side
Events – are placed on the middle
Agents- are placed on the right side
Develop REA diagram
Lecture break -1
A sales clerk has sold
What resources, events
and agents are described inventory to a
in the short sequence of
customer.
events on the right? and
Draw the REA diagram
REA modeling illustration
(0,*) (1,1)
Inventory (1,*) (0,*) Sales Customer
(0,*)
are 1 and many, include the primary key from the “1 side”
in the table on the “many side.”
Primary Keys