Technology Review-II Professor Martin Professor Xiong CSUS

Slides:



Advertisements
Similar presentations
Database Design Using the REA Data Model
Advertisements

Business Processes, Data Modeling and Information Systems
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
REA analysis and E-R diagramming 12/8/2011. What are we hoping to achieve? Tool for designing a database system to meet the needs of the organization.
Chapter 3 Data Modeling Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent.
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Accounting System Design
Implementing an REA Model in a Relational Database
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 5-1 Accounting Information Systems 9 th Edition Marshall.
FIS 431/631 Financial Information Systems: Analysis and Design REA Modeling Joe Callaghan Oakland University Department of Accounting & Finance.
© 2008 Prentice Hall Business Publishing Accounting Information Systems, 11/e Romney/Steinbart1 of 121 C HAPTER 16 Implementing an REA Model in a Relational.
Database Design Using the REA Data Model
Entity-Relationship Model and Diagrams (continued)
McGraw-Hill/Irwin Copyright © 2005 by The McGraw-Hill Companies, Inc. All rights reserved. ENTERPRISE INFORMATION SYSTEMS A PATTERN BASED APPROACH Chapter.
A Quick Review of Analysis Stages of the Systems Development Life Cycle Planning Analysis Design Construction.
FIS 431/631 Financial Information Systems: Analysis and Design ERD & Normalization Joe Callaghan Oakland University Department of Accounting & Finance.
Implementing an REA Model in a Relational Database
Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 18-1.
APPENDIX C DESIGNING DATABASES
Database Design Using the REA Data Model
Hall, Accounting Information Systems, 7e ©2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly.
© 2008 Prentice Hall Business Publishing Accounting Information Systems, 11/e Romney/Steinbart1 of 138 C HAPTER 15 Database Design Using the REA Data Model.
Database Design Using the REA Data Model
Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA.
ระบบฐานข้อมูลขั้นสูง (Advanced Database Systems) Lecturer AJ. Suwan Janin Phone:
Database Design Using the REA Data Model
Chapter 17 Database Design Using the REA Data Model Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 17-1.
Chapter 17 Database Design Using the REA Data Model Copyright © 2012 Pearson Education 17-1.
Introduction to Accounting Information Systems
© 2008 Prentice Hall Business Publishing Accounting Information Systems, 11/e Romney/Steinbart1 of 138 C HAPTER 15 Database Design Using the REA Data Model.
REA analysis and E-R diagramming December 2, 2008.
The REA Model. The REA model provides structure for developing an accounting database It helps to identify It helps to The REA Model.
Accounting Information Systems 9th Edition
Introduction to Transaction Processing and Documentation Techniques COPYRIGHT © 2007 Thomson South-Western, a part of The Thomson Corporation. Thomson,
© 2008 Prentice Hall Business Publishing Accounting Information Systems, 11/e Romney/Steinbart1 of 138 C HAPTER 15 Database Design Using the REA Data Model.
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart1 of 131 C HAPTER 16 Implementing an REA Model In a Relational.
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart1 of 96 C HAPTER 17 Special Topics in REA Modeling for the.
Acct 316 Acct 316 Acct 316 Data Modeling and Database Design 5 UAA – ACCT 316 Accounting Information Systems Dr. Fred Barbee Chapter.
Implementing an REA Model in a Relational Database
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
Implementing an REA Model in a Relational Database
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
Advanced Accounting Information Systems Day 7 Database Modeling.
REA analysis and E-R diagramming 4/27/2011. What are we hoping to achieve? Tool for designing a database system to meet the needs of the organization.
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart1 of 138 C HAPTER 15 Database Design Using the REA Data Model.
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart1 of 138 C HAPTER 15 Database Design Using the REA Data Model.
© 2008 Prentice Hall Business Publishing Accounting Information Systems, 11/e Romney/Steinbart1 of 138 C HAPTER 15 Database Design Using the REA Data Model.
McGraw-Hill/Irwin Copyright © 2005 by The McGraw-Hill Companies, Inc. All rights reserved. ENTERPRISE INFORMATION SYSTEMS A PATTERN BASED APPROACH Chapter.
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
© 2008 Prentice Hall Business Publishing Accounting Information Systems, 11/e Romney/Steinbart1 of 138 C HAPTER 15 Database Design Using the REA Data Model.
Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 18-1.
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart1 of 131 C HAPTER 16 Implementing an REA Model In a Relational.
© 2008 Prentice Hall Business Publishing Accounting Information Systems, 11/e Romney/Steinbart1 of 138 C HAPTER 15 Database Design Using the REA Data Model.
Database Design Chapters 17 and 18.
Implementing an REA Model in a Relational Database
Tutorial 3 Data Modelling.
Implementing an REA Model in a Relational Database
The REA Enterprise Ontology: Value System and Value Chain Modeling
Database Design Using the REA Data Model
Implementing an REA Model in a Relational Database
Accounting Information Systems 9th Edition
Database Design Using the REA Data Model
Overview of Business Processes
Accounting System Design
Database Design Chapters 17 and 18.
Accounting System Design
Database Design Using the REA Data Model
Presentation transcript:

Technology Review-II Professor Martin Professor Xiong CSUS This lecture is based primarily on Romney & Steinbart(2003). It also draws on Martin (2002). Updated on: Monday, September 9, 2003

Agenda REA Developing a REA Diagram Implementing an REA Diagram in a Relational Database The Purpose of REA

The REA Data Model Data modeling is the process of defining a database so that it faithfully represents all aspects of the organization, including its interactions with the external environment.

The REA Data Model The REA data model is a conceptual modeling tool specifically designed to provide structure for designing AIS databases. The REA data model provides structure in two ways: By identifying what entities should be included in the AIS database By prescribing how to structure relationships among the entities in the AIS database

Sample REA Diagram Inventory Sales Customer Cash Cashier Stock flow Sales Person Participates in Stock flow Inventory Sales Participates in Economic Duality Customer Participates in Stock flow Cash Receive Cash Cashier Participates in

Basic REA Template Resource A Get Resource A External Agent Resource B Internal Agent Basic REA Template Participates in inflow Resource A Get Resource A Participates in External Agent Economic Duality Participates in Internal Agent outflow Resource B Give up Resource B Participates in External Agent

An AIS Viewed as a Set of Give-to-Get Exchanges Give Inventory Get Cash Revenue Cycle Give Cash Get Inventory Expenditure Cycle Give Cash Get Employee’s Time/Service Human Resources/Payroll Cycle Give Cash Production Cycle Get Cash Get Employee’s Time/Service Give/Use Raw Materials Get Finished Goods Inventory Financing Cycle Give (Use) Machine Time & Services

Types of Entities Resources acquired and used by an organization An entity is any class of objects about which data is collected. The REA data model classifies entities into three distinct categories: Resources acquired and used by an organization Events engaged in by the organization Agents participating in these events

Types of Entities Resources are defined as those things that have economic value to the organization. What are some examples? cash inventory equipment

Types of Entities Events are the various business activities about which management wants to collect information for planning or control purposes. What are some examples? sales events taking customer orders

Types of Entities Agents are the third type of entity in the REA model. Agents are the people and organizations that participate in events and about whom information is desired. What are some examples? employees customers

Structured Relationships The REA data model prescribes a basic pattern for how the three types of entities (resources, events, and agents) should relate to one another.

Structured Relationships Inflow Resource A Get resource A Economic duality Outflow Resource B Give up resource B

Structured Relationships Participates in Internal Agent Get resource A Participates in External Agent Economic duality Participates in Internal Agent Give up resource B Participates in External Agent

Agenda REA Developing a REA Diagram Implementing an REA Diagram in a Relational Database The Purpose of REA

Developing an REA Diagram Developing an REA diagram for a specific transaction cycle consists of three steps: Identify the pair of events that reflect the basic economic exchange. Identify the resources affected by each event and the agents who participate in those events. Determine the cardinalities of each relationship.

Identify Economic Exchange Events The basic economic exchange in the revenue cycle involves the sale of goods or services and the subsequent receipt of cash in payment for those sales. The REA diagram for S&S’s revenue cycle shows the drawing of sales and cash collections events entities as rectangles and the relationship between them as a diamond.

Identify Economic Exchange Events In drawing an REA diagram for an individual cycle, it is useful to divide the paper into three columns, one for each type of entity. Left column should be used for resources. Middle column should be used for events. Right column should be used for agents.

Identify Resources and Agents Once the events of interest have been specified, the resources that are affected by those events need to be identified. The sales event involves the disposal of inventory. The cash collections event involves the acquisition of cash.

Identify Resources and Agents After specifying the resources affected by each event, the next step is to identify the agents who participate in those events. There will always be at least one internal agent (employee) and, in most cases, an external agent (customer).

Specify Cardinalities The cardinality of a relationship indicates how many occurrences of one entity in the relationship can be linked to a single occurrence of the other entity in the relationship. Cardinalities are often expressed as a pair of numbers. The first number is the minimum, and the second number is the maximum.

Specify Cardinalities The minimum cardinality of a relationship indicates the fewest number of rows that can be involved in that relationship. Minimum cardinalities can be either 0 or 1. A minimum cardinality of zero means that each occurrence of the entity on the other side of the relationship need not be linked to any occurrences of the entity on this side of the relationship.

Specify Cardinalities The minimum cardinality of zero in the (0, N) cardinality pair to the left of the customer entity in the customer-sales relationship indicates that a given customer need not be linked to any sales events. Made to Sales (0, N) Customer

Specify Cardinalities Minimum cardinalities of zero are common for relationships between two temporarily linked events. Why? Because at any given time the second event in the pair may not yet have occurred. A minimum cardinality of 1 indicates that each instance of that entity must be associated with at least one instance of the other entity.

Specify Cardinalities The minimum cardinality below the sales entity in the sales-customer relationship reflects the general business rule that each sales event must be associated with some specific customer. Party to Sales Customer (1, 1)

Specify Cardinalities The maximum cardinality of a relationship indicates the largest number of rows that can be involved in that relationship. Maximum cardinalities can be either 1 or N. The N indicates that each row in the table may be linked to many rows in the other table.

Specify Cardinalities Three basic types of relationships between entities are possible, depending on the maximum cardinality associated with each entity. One-to-one relationship One-to-many relationship Many-to-many relationship

Specify Cardinalities Cardinalities are not arbitrarily chosen by the database designer. They reflect facts about the organization being modeled and its business practices obtained during the requirements analysis stage of the database design process.

Examples ) Cash Sales Receipts Sales Cash Receipts Sales Cash Receipts (0, 1) (1, 1) Sales Cash Receipts (1, 1) (0, N) Sales Cash Receipts (0, 1) (1, N) Sales Cash Receipts (0, N) (1, N)

Agenda REA Developing a REA Diagram Implementing an REA Diagram in a Relational Database The Purpose of REA

Implementing an REA Diagram in a Relational Database An REA diagram can be used to design a well-structured relational database. A well-structured relational database is one that is not subject to update, insert, and delete anomaly problems.

Create Tables A properly normalized relational database has a table for each entity and each many-to-many relationship. From the previously discussed REA diagram, nine tables would be created: one for each of the seven entities and one for each of the many-to-many relationships.

Create Tables Inventory Sales Salesperson Customer Cashier Cash collections Cash Sales-inventory Sales-cash collections

Identify Attributes for Each Table Primary keys: Usually, the primary key of a table representing an entity is a single attribute. Other Attributes: Additional attributes are included in each table to satisfy transaction processing requirements.

Implement One-to-One and One-to-Many Relationships One-to-One Relationships: In a relational database, one-to-one relationships between entities can be implemented by including the primary key of one entity as a foreign key in the table representing the other entity.

Implement One-to-One and One-to-Many Relationships In a relational database, one-to-many relationships can be also implemented in relation to databases by means of foreign keys.

Agenda REA Developing a REA Diagram Implementing an REA Diagram in a Relational Database The Purpose of REA

Documentation REA diagrams are especially useful for documenting an advanced AIS built using databases. REA diagrams provide two important types of information about a database: Information about the relationships among data items Information about the organization’s business practices

Information About Business Practices The cardinalities in REA diagrams provide useful information about the nature of the company being modeled and the business policies that it follows. Resources Events Line items Inventory Sales (0, N) (1, N)

Information About Business Practices The relationship between sales and inventory is called line items and represents the fact that each sale consists of one or more items of merchandise. Each item appears as a separate line item on the sales invoice. The quantity sold indicates that a customer may buy more than one of a given item.

Extracting Information From the AIS A complete REA diagram serves as a useful guide for querying an AIS database. Queries can be used to generate journals and ledgers from a relational database built on the REA model. (0, 1) (1, N) Sales Cash collections

Extracting Information From the AIS In a one-to-many relationship between cash collection and sales, remittance number is a foreign key in the sales table. Each sales transaction is paid in full by a cash collection event. What is the query logic? Total accounts receivable is the sum of all sales for which there is no remittance number.

Topics Discussed REA-Introduction Developing a REA Diagram Implementing a REA Diagram in a Relational Database

Review Which of the following is not considered a resource in an REA model? Cash Accounts Receivable Inventory Equipment

Review 2. Which of the following is not a type of entity in the REA data model? Customers Sales Invoices Delivery trucks

Review 3. Which type of relationship cardinality must be implemented in a relational database as a separate table? One-to-one relationship One-to-many relationship Many-to-many relationship all of the above

Review 4. In a company pays for each purchase it makes with a separate check and does not make installment payments on any purchases, then the relationship between cash disbursement and purchases would be modeled as being with of the following? One-to-one relationship one-to-many relationship many-to-many relationship paid-in-full relationship

Review 5. The key of a many-to-many relationship between the sales and inventory events would be: invoice number item number both invoice number and item number either invoice number or item number

Review 6. Which of the following elements of the REA data model must be implemented as tables in a relational database? Resources events agents all of the above

Review 7. Which set of cardinality pairs most accurately models the sales of low-cost, mass-produced items by a retail store? inventory(0,N) – (0,N) Sales inventory(0,N) – (1,N) Sales Inventory (1,N) – (1,N) Sales inventory(1,N) – (1,N) Sales

Review 8. A company wants to store information about both currently used and alternative suppliers? Purchases(0,N) – (0,1) suppliers Purchases(1,N) – (1,1) suppliers Purchases(0,1) – (1,N) suppliers Purchases(1,1) – (0,N) suppliers

Example Draw an REA Diagram , complete cardinalities, for Joe’s revenue cycle Joe’s is a small ice cream shop located near the local university’s baseball field. Joe’s serves walk-in customers only. The shop carries 26 flavors of ice cream. Customers can buy cones, sundaes, or shakes. When a customer pays for an individual purchase, a sale transaction usually includes just one item. When a customer pays for a family or a group purchase, however, a single sale may include many different items. All sales must be paid for at the time the ice creams is served.