Escolar Documentos
Profissional Documentos
Cultura Documentos
Relational Databases
Types of Files
Fact A
Database
Fact B Shipping
management
Program
Fact C system
Fact D
Fact E Billing
Program
Relational Databases
Databases differ in the type of data model they are designed with
A data model is an abstract representation of the contents of a
database.
The relational data model represents everything in the database
as being stored in the form of tables.
Technically, these tables are called relations.
Relational Databases
Database
Operating
DBMS system
Logical and Physical
Views of Data
Program-data independence
is the separation of the logical
and physical views of data.
Schemas
Cash receipt
Schemas
Inventory Sales Customer
Cash receipt
Mapping conceptual level facts to internal level descriptions
Inventory Record
Item number – integer (5), non-null, index =
itemx Description – character (15)
The Data Dictionary
Normalization
Starts with the assumption that all data is initially
stored in a large non-normalized table.
This table is then decomposed using a set of
normalization rules to create a set of tables in
the Third Normal Form.
Semantic Data Modeling
The database designer uses his/her knowledge
about the business structure to create a set of
relational tables.
Database Systems and the
Future of Accounting
Operation and
Planning
maintenance
Data Requirements
modeling Implementation
analysis
occurs
here
Design Coding
The REA Data Model
The REA data model classifies entities into three distinct categories:
Economic
Duality
GIVE
Resource B Outflow Participant Internal Agent
Resource B
Sample REA diagram
Participant
Economic
Customer
Duality
Participant
Cash
Cash Stock-flow Participant Cashier
Receipts
REA Diagram, Step 1:
Identify Economic Exchange Events
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
(0, N)
Sales Made to Customer
REA Diagram, Step 4:
Determine Cardinalities
(1,1) (0, N)
Sales Made to Customer
REA Diagram, Step 4:
Determine Cardinalities
(0, N)
Sales Made to Customer
REA Diagram, Step 4:
Determine Cardinalities
(1,1) (0, N)
Sales Made to Customer
REA Diagram, Step 4:
Determine Cardinalities
Cash
Sales (0,1) (1,1)
Receipts
Different types of relationships
Cash
Sales (0,N) (1,1)
Receipts
Different types of relationships
Cash
Sales (0,1) (1,N)
Receipts
Different types of relationships
Cash
Sales (0,N) (1,N)
Receipts
Implementing an REA Diagram
in a Relational Database
1. Inventory 6. Cash
disbursements
2. Purchases 7. Cash
3. Employees 8. Purchases-
inventory
4. Vendors
9. Purchases-cash
5. Cashier disbursements
Assign Attributes for Each Table