Exp19_Access_Ch03_Cap – Brilton Madley Games 1.0

Brilton Madley, a board game manufacturer, hired a new CEO. She asked for your assistance in providing summaries of data that took place before she started with the company. To help her with her strategic planning, you will create queries to perform data analysis. Based on your meeting, you plan on creating four queries. One query will find orders with minor delays. Another query will summarize company revenue and cost by country. A third query will be used to help evaluate payments made by customers on their orders. The final query will calculate the total sales by sales representative title.

     

Create a query using Query Design.   From the Customers table, include the fields FirstName, LastName, and Phone   (in that order). From the Orders table, include the fields OrderID,   OrderDate, and ShippedDate (in that order). Run the query and then examine the records. Save the query as Shipping   Efficiency.

 

Add   a calculated field named DaysToShip   to calculate the number of days taken to fill each order. (Hint: the   expression will include the OrderDate and ShippedDate fields; the results   will not contain negative numbers.) Run the query and then examine the   results. Save the query.

 

Add   criteria to limit the query results to include any order that took more than 30 days to ship.

 

Add the Quantity field from the   Orders table and the ProductName field from the Products table to the query   (in that order). Sort the query by ascending LastName.

 

Add the caption Days to Ship to the DaysToShip field. Switch to   Datasheet view to view the final results. Save and close the query.

 

Create a query using Query Design and   add the Customers, Orders, and Products tables. Add the Country field from   the Customers table. Set the field’s Total row to Group By. Save the   query as Revenue and Cost by Country.

 

Add a calculated field in the second   column. Name the field TotalRevenue.   This field should multiply the quantity ordered (from the Orders table) by   the unit price for that item (from the Products table). Format the calculated   field as Currency and change the caption to Total Revenue.   Change the Total row for the TotalRevenue field to Sum.

 

Add a calculated field in the third   column. Name the field TotalCost.   The field should multiple the quantity ordered (from the Orders table) by the   unit cost for that item (from the Products table). Format the calculated   field as Currency   and add a caption of Total Cost.   Change the Total row to Sum. Run the query. Save the query. Return to Design   view.

 

Add the OrderDate field and criteria   to that field so that only orders made between 7/1/2018   and 12/31/2018 are displayed. Change the Total row   to Where. This expression will display only orders that were completed during   the second half of 2018. Run the query and view the results. Save and close   the query.

 

Create   a copy of the Revenue and Cost by Country query named Customer Payments. Switch to Design view of the new   query and remove the Country, TotalCost, and OrderDate fields. Add the   FirstName and LastName fields. Move the TotalRevenue field to the end. Rename   the TotalRevenue field to OrderTotal.   Change the caption to Order Total.

 

Add   a new field using the Expression Builder named SamplePayment.   Insert the Pmt function with the following parameters:
•   Use .05/12 for the rate argument (5% interest,   paid monthly)
•   Use the number 12   for the num_periods argument (12 months)
•   Use the calculated field OrderTotal   for the present_value
•   Use 0 for both future_value and type

 

Change   the Total row to Expression for the SamplePayment field. Change the Format   for the SamplePayment field to Currency. Run the query and verify the second   order(with LastName Sparks) has a sample payment of $26.80. Note: it will   display as a negative number. Save and close the query.

 

Create   a copy of the Revenue and Cost by Country query named Revenue by Sales Rep. Switch to Design view of the new   query and remove the entire Customers table, the TotalCost, and OrderDate   fields. Add the Sales Reps table. Add the Title field from the Sales Reps   table and move it to the front of the TotalRevenue field.

 

 

Run   the query and then examine the summary records; there should be 4 Titles   listed. Switch to Design view and change the sort order so that the title   with the highest TotalRevenue is first and the title with the lowest   TotalRevenue is last. Run the query and verify the results. Save and close   the query.

SELECT

  

44.  SELECT Dept_name, Dept_Mail_Box, Dept_Phone, Emp_Num

45. SELECT Prod_SKU, Prod_Descript, Prod_Type, Prod_Base, Prod_Category, Prod_Price

46. SELECT Emp_Fname, Emp_Lname, Emp_Email

47. SELECT Emp_Fname, Emp_Lname, Emp_Phone, Emp_Title, Dept_Num

48. SELECT e.Emp_Fname, e.Emp_Lname, s.Sal_From, s.Sal_End, s.Sal_Amount

49. SELECT c.Cust_Fname, c.Cust_Lname, c.Cust_Street, c.Cust_City, c.Cust_State, c.Cust_Zip

50. SELECT e.Emp_Num, e.Emp_Lname, e.Emp_Email, e.Emp_Title, d.Dept_Name

51. SELECT b.Brand_Name, COUNT(p.Prod_SKU) AS NUMPRODUCTS

52. SELECT Prod_Category, COUNT(Prod_SKU) AS NUMPRODUCTS

53. SELECT Prod_Base, Prod_Type, COUNT(Prod_SKU) AS NUMPRODUCTS

54. SELECT Brand_ID, SUM(Prod_QOH) AS TOTALINVENTORY

55. SELECT b.Brand_ID, b.Brand_Name, AVG(p.Prod_Price) AS AVGPRICE

56. SELECT Dept_Num, MAX(Emp_Hiredate) AS MOSTRECENT

57. SELECT e.Emp_Num, e.Emp_Fname, e.Emp_Lname, MAX(s.Sal_Amount) AS LARGESTSALARY

58. SELECT c.Cust_Code, c.Cust_Fname, c.Cust_Lname, SUM(i.Inv_Total) AS TOTALINVOICES

PBL learning

As we start this journey together I will challenge you here each week.  Along with other discussions.

One of the thoughts for this week is wise stewardship, particularly in the agricultural industry.  Genesis 2:15 “The Lord God took man and put him in the garden of Eden to work it and keep it.”  

So… how do we become good and wise stewards of the land?  In the industry of agriculture, economic prosperity often follows good land stewardship.  

Please think beyond the global warming discussion that is prevalent today.

Write 250 words with plagiarism report

A local small business has hired you

A local small business has hired you to write a payroll calculation program.

#The program only needs to calculate gross pay for an employee and display the results.
#Your program will accept the employee’s name, hours worked, and the employee’s pay rate.
#The program will need to calculate overtime as well.
#Overtime is defined as anything over 40 hours is paid at 1.5 times the regular pay.
#The program should print the employee’s name, the gross pay amount,
#and only if there was overtime, print the overtime pay amount as well.
#Finally, the program should repeat as necessary until the user enters a sentinel value.