Database Design Using REA Diagram
Database Design Using REA Diagram
- Entity r/ship
- REA diagram
Entity r/ship diagram: - it shows the various entities and their relationship
using graphs.
Sales Customers
E.g. the sales data main contain quantity of sales, price, discount, addresses,
time for carrying and the customer’s data main use Customers ID, Customers
name, Customers address, etc.
REA Diagram: - this is another mechanism for data modeling to show the
r/ship b/n various events there are three basic types of entities in REA
diagram.
REA specifies R- Resources- this are what the organization acquires and uses.
1. Get event - this are events which increase the quantity of resource.
E.g. collection of cashes, purchase of inventories
2. Give event – this are events which decreases the quantity of resources.
E.g. if you purchase inventory of cashes the get event is that you
receive inventory and the give event is that you pay cash.
These are events which doesn’t have an increase or decrease effect they are
simply plans to purchase an inventory.
It is the r/ship between give and get events this r/ship reflects the basic
business principle that business organizations use up resources in the hope of
acquiring other resources or (transactions).
Each accounting event can be expressed in give and get economic duality. For
internal events such as transfer of raw materials production the employee who
gives up resources is an internal agent (store person) and the external agent is
the one who receive the resources.
Step 2 – identify the resources affected by the event and the agents participated
Step 3 – Identify cardinalities this are the nature of the r/ships b/n two entities
Step 1 – every REA model represents give and get event in transaction cycle.
The give event reduces resources and the get event increase resources.
3. Bill customers
4. Collect payment
Step 2
Identifying the resource affected which required resource reduced by the give
event and committed.
Example
In checking order selling and collection of cash the give event could be sales
the get event is cash collection. The resources reduce inventories the resource
increase at cash and taking orders in a commitment.
Also identified agents they will always one internal agent which is the employee
and mostly an external agent which is a customer or supplier.
Examples – a company can make many sales to one customer or the company
can sale single product to many customers.
Using the crow’s notation the symbol 1for zero is expressed as 0 for one 1 and
many expressed as
Note that there is usually minimum and maximum cardinality. For each entity
the minimum can be 1 and 0 the maximum can be as many as possible.
Note that the symbol for the cardinality 1 means that for every occurrence of
sales. There is one customer associated with sales.
The maximum cardinality for menu means that for every customer in the
database they can be many sales involved that is the company can make many
sales to one customers,