Accouting Ination System Chapter 4 Solutions(1).doc_第1页
Accouting Ination System Chapter 4 Solutions(1).doc_第2页
Accouting Ination System Chapter 4 Solutions(1).doc_第3页
Accouting Ination System Chapter 4 Solutions(1).doc_第4页
免费预览已结束,剩余1页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Accounting Information Systems Chapter SolutionsChapter 4Q4.1The database approach is possible because of the database management system (DBMS). As shown in Figure 4.2, the DBMS is a software program that sits between the actual data stored in the system and the application programs that use the data. As shown in Figure 4.4, this allows users to separate the way they view the data (called the logical view) from the way the data is actually stored (the physical view). The DBMS interprets the users requests and retrieves, manipulates, or stores the data as needed. The two distinct views separate the applications from the physical information, providing increased flexibility in applications, improved data security, and ease of use.In a database system the manager will rarely, if ever, need to understand or be familiar with the physical view of the data. In most instances, the internal auditor and the programmer will not need to understand or be familiar with the physical view of the data. Most everything they do requires only an understanding of the logical view of the data.If accountants understand logical data structures and the logical view of the data they are better able to draw the information they need from the database.P4.1a. Note that the problem does not say what the date is (date ordered, date shipped, etc) so different assumptions can be made about the need date data. To fill out a sales order, the sales order entry clerk needs access to the following data stored in the data base 4-1- item number- description- quantity-on-hand- price- customer name- customer name- shipping address- credit limit- account balance To create and mail a bill (invoice), the billing clerk needs access to the following data stored in the data base:- customer name- customer number- billing address- item numbers- quantity sold- price- terms To manage inventory, the inventory control department needs access to the following data stored in the data base:- item number- description,- quantity on hand. To purchase inventory, the purchasing department needs access to the following data stored in the data base:Accounting Information Systems- item number- description- quantity on hand- cost.P4.2a.DDL - this is the language used to define the database.bDQL - this is an example of a query.cDML - this is the language used to actually process transaction data and update the database.d.DQL - another example of a task that involves querying the database.e.DDL and DML - the former to alter the structure, the latter to make the change.f.DQL - such a listing can be produced by a query.g.DDL and DML - the former to add the field, the latter to enter data in it.P4.3Below is a set of tables that answers parts a, b, and c. There is no solution to parts d through f as students will select different software packages and come up with different queries.Table NamePrimary KeyForeign KeysOther AttributesInventoryItem NumberDescriptionQuantity on HandPurchasesPurchase order numberVendor numberPurchasing Agent (employee number)Date of purchaseTotal amount of purchasePurchases-InventoryItem numberPurchase order numberQuantity purchasedUnit cost (actual)Extended amountVendorVendor numberVendor nameVendor addressEmployees Employee number Employee nameNote: Extended amount and Total amount of purchase do not have to be stored in the data base as they can be calculated from other values. Extended amount is Quantity purchased x Unit cost. Total amount of purchase is the sum of all the extended amounts for all items on a particular purchase order.4.6The necessary tables, with their attendant primary and foreign keys, are as follows:Table NamePrimary KeyForeign KeysOther AttributesEmployeeEmployee NumberSupervisor number (another employee number)Employee namePay rateDate hiredDate of birthSkillsSkill numberSkill nameEmployees-SkillsSkill numberEmployee numberDate skill acquiredThere is no solution to part c as students will select different software packages and enter different data in the tables.4.7The following additional tables, with their attendant primary keys, are needed to store the other new attributes. Note that customer name is already stored in the customer tableTable NamePrimary KeyForeign KeysOther AttributesCash ReceiptsCash Receipt NumberCustomer numberEmployee processing payment (employee number)Date of receiptTotal amount receivedCash Receipts-SalesInvoice payment applies to (Invoice number)Cash Receipt numberAmount applied to a specific invoiceThere is no solution to part c as students will select different software packages and enter different data in the tables.4.8 To avoid the update, insert, and delete anomalies in Table 4-17 (shown below), three separate relational tables (Invoice Table, Invoice-Inventory Table, and Customer Table) are created.TABLE 4-17 Invoice#DateOrderDateCustomerIDCustomerNameItem#Quantity526-19-055-25-05201Johnson1035526-19-055-25-05201Johnson1228526-19-055-25-05201Johnson1011526-19-055-25-05201Johnson7112576-20-056-01-05305Henry53518576-20-056-01-05305Henry11515576-20-056-01-05305Henry1225INVOICE TABLE Invoice# (PK)DateOrderDateCustomerID (FK)526-19-055-25-05201576-20-056-01-05305INVOICE-INVENTORY TABLE Invoice# (FK)Item# (FK)Quantity52103552122852101152711257535185711515571225CUSTOMER TABLE CustomerID(PK)CustomerName201Johnson305HenryNote: PK-Primary Key, FK Foreign Key4.9TABLE 4-18PurchaseOrder #Purchase Order DatePart #DescriptionUnitPriceQuant

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论