Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Memorandum To: 4310 Students From: Gary G. Berg Date: May 12, 2017 Re: Database Assignment 8– A/R balances by customer This assignment will require you to create a series of queries that ultimately will allow you to calculate the accounts receivable balance by customer for the month of March. Since March is the only data in the database tables, you do not need to use date criteria in your queries. You need queries to A. calculate the orders details extension (sort on order ID ascending) B. calculate order Sales totals (sorted on order ID ascending) C. Calculate Invoice totals (sorted on order ID ascending) D. March Sales/InvoiceTotals By customer (sorted on CustomerID ascending) E. Cash receipts by customers (sorted on customer ID ascending) F. Customer accounts receivable balance (sort by customer id ascending) The attributes on the examples on the following pages should be in your solution. Use the currency format where applicable. The database file for this assignment is on the class web site as a zipped archive file. You must download the indicated file for this assignment and extract it. 1. The use of Null to Zero and the concept of inner join versus outer join may be applicable There can be several ways to do each of the above queries. Depending on how you do it, one query may be all you need for a required query, or it may need to be done in several steps The customer ID is a foreign key in the order table, but the full customer name is displayed. Although the customer ID is what is stored, a lookup feature is used to display the full customer name. A similar situation exists in the order details table for the product. Give your queries meaningful names, such as qry A final. qry B final etc. If the query requires several steps, using naming structure qry C1, qry C2, qry C3final etc. 2. Submit the completed file via the D2L dropbox.: a. Files submitted to the wrong dropbox will receive a grade of 0 b. If you have an issue and need me to take a look at what you have done, send the file as an email attachment to [email protected]. i. I will not tell you the answer, but I will try to point you in the right direction 3. This is not a group assignment. Students should work independently. a. Copying/plagiarism will result in a grade of 0 for all parties involved. 4. Due on November 25, 11:30 p.m. (missing this deadline will result in grade of zero) Do not wait until the last minute to do this assignment. 5. Remember, file must be virus free. (Any assignment received containing a Virus receives a grade of 0) 1 Qry A Order details extension Page 2 Qry B Sales total Qry C Invoice totals Page 3 Qry D Sales/invoice totals by Customer Qry E Cash Receipts by Customer Page 4 Qry F A/R by customer Page 5 Visio Relationship Map Products Suppliers PK SupplierID CompanyName ContactName ContactTitle Address City Region PostalCode Country Phone Fax HomePage PK FK2 FK1 ProductID ProductName SupplierID CategoryID QuantityPerUnit UnitPrice UnitsInStock UnitsOnOrder ReorderLevel Discontinued Order Details PK,FK1 PK,FK2 UnitPrice Quantity Discount OrderID FK1 FK2 CustomerID EmployeeID OrderDate RequiredDate ShippedDate ShipVia Freight ShipName ShipAddress ShipCity ShipRegion ShipPostalCode ShipCountry Shippers PK ShipperID CompanyName Phone Employees CategoryID PK CategoryName Description Picture EmployeeID LastName FirstName Title TitleOfCourtesy BirthDate HireDate Address City Region PostalCode Country HomePhone Extension Photo Notes ReportsTo Cash Receipts Page 6 PK FK3 Categories PK OrderID ProductID Orders PK CR ID FK1 Date CR amount Customer ID Customers PK CustomerID CompanyName ContactName ContactTitle Address City Region PostalCode Country Phone Fax