Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a query using Query Design. From the Customers table, include the fields CompanyName, ContactName, ContactTitle, and Phone (in that order). From the Orders table,

Create a query using Query Design. From the Customers table, include the fields CompanyName, ContactName, ContactTitle, 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 Order Details table and the ProductName field from the Products table to the query (in that order). Sort the query by ascending CompanyName.

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 Orders, Order Details, Products, and Customers tables. Add the fields OrderID and OrderDate (in that order) from the Orders table. Set both fields' Total rows to Group By.

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

Add a calculated field in the fourth column. Name the field DiscountAmount. The field should multiply the number of items ordered, the price per item, and the discount field(in that order). This will calculate the total discount for each order. Format the calculated field as Currency, and add a caption of Discount Amt. Change the Total row to Sum. Run the query. Save the query as Order Summary. Return to Design view.

Add criteria to the OrderDate field so only orders made between 1/1/2016 and 12/31/2016 are displayed. Change the Total row to Where. This expression will display only orders that were created in 2016. Run the query and view the results. Save and close the query.

Create a copy of the Order Summary query named Order Financing. Switch to Design view of the new query and remove the DiscountAmount field.

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 ExtendedAmount 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 has a sample payment of $125.84. Note: it will display as a negative number. Save and close the query.

Create a copy of the Order Summary query named Order Summary by Country. Replace the OrderID field with the Country field in Design view of the new query.

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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

6. Explain how to train managers to coach employees.

Answered: 1 week ago

Question

5. Tell how job experiences can be used for skill development.

Answered: 1 week ago

Question

4. Explain the characteristics of successful mentoring programs.

Answered: 1 week ago