Write a query to retrieve all products that had been ordered by customer id = 2....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a query to retrieve all products that had been ordered by customer id = 2. The SQL query should show order id, order date (from Orders table), product ID, and product name (from Products table). Sort the results by orderdate with ascending order so that the older appear first. The query output should be like the following table. Save your query as "Qry10" in PracticeDatabase.accdb. orderid 353 353 353 353 353 353 353 538 538 609 orderdate. productid 5/11/2014 5/11/2014 5/11/2014 5/11/2014 5/11/2014 5/11/2014 5/11/2014 6/21/2014 6/21/2014 5/9/2016 productname 1 Almonds, Hickory Smoked - 12 oz. Bag 2 Almonds, Roasted and Salted - 18 oz. Bag 11 Cappuccino Almonds in 8oz. Bag 20 Chunky Pretzels 27 Corn Chips Bag 31 Chocolate Chunk Cookies, 9.5 oz. 51 Coconut Chocolate Chip Cookies 5 California Original Pistachios - 1 lb. Bag 68 Mushroom Rolls 9 Dried Cranberries - 34 oz. Write a query to retrieve all products that had been ordered by customer id = 2. The SQL query should show order id, order date (from Orders table), product ID, and product name (from Products table). Sort the results by orderdate with ascending order so that the older appear first. The query output should be like the following table. Save your query as "Qry10" in PracticeDatabase.accdb. orderid 353 353 353 353 353 353 353 538 538 609 orderdate. productid 5/11/2014 5/11/2014 5/11/2014 5/11/2014 5/11/2014 5/11/2014 5/11/2014 6/21/2014 6/21/2014 5/9/2016 productname 1 Almonds, Hickory Smoked - 12 oz. Bag 2 Almonds, Roasted and Salted - 18 oz. Bag 11 Cappuccino Almonds in 8oz. Bag 20 Chunky Pretzels 27 Corn Chips Bag 31 Chocolate Chunk Cookies, 9.5 oz. 51 Coconut Chocolate Chip Cookies 5 California Original Pistachios - 1 lb. Bag 68 Mushroom Rolls 9 Dried Cranberries - 34 oz.
Expert Answer:
Related Book For
Using Microsoft Excel and Access 2016 for Accounting
ISBN: 978-1337109048
5th edition
Authors: Glenn Owen
Posted Date:
Students also viewed these databases questions
-
Osborn Manufacturing uses a predetermined overhead rate of $19.70 per direct labor-hour. This predetermined rate was based on a cost formula that estimates $265,950 of total manufacturing overhead...
-
Create a query to retrieve the customerID, orderid, order date, shipping cost and shipping date of orders if the shipping date is between April 3, 2014 and July 5, 2015 and shipping cost is greater...
-
Rodriguez Company pays $358,020 for real estate with land, land improvements, and a building. Land is appraised at $220,500; land improvements are appraised at $73,500; and the building is appraised...
-
Perhaps more surprising to Mr. Pitkin was a proposal by the VP of Marketing to make a major investment in market share by increasing promotional expenditures by $2.5 million during 1998-2000. Sales...
-
A 0.06-lb bullet is fired with a horizontal velocity into the lower end of a 45-lb slender bar which is initially at rest in a vertical plane. Knowing that the bullet becomes embedded in the bar and...
-
The following information is available for the Albert and Allison Gaytor family in addition to that provided in Chapters 1 4. Albert and Allison received the following form: Albert and Allison paid...
-
Consider the inspection described in Example 2.11. Six parts are selected randomly from a bin of 50 parts, but assume that the selected part is replaced before the next one is selected. The bin...
-
Groundwater at a flow rate of 1,500 gpm, containing three volatile organic compounds (VOCs), is to be stripped in a trayed tower with air to produce drinking water that will meet EPA standards....
-
Your company needs to make one payment of RM5 million to the supplier. The payment must be made within 6 months. You have made arrangements with the bank to obtain a 3-month loan of RM5 million...
-
Assuming the data are normal, what is the probability the blade weights from this process will exceed 5.20? What is the probability that weights will be less than 4.80? What is the actual percent of...
-
Your company plans to host a large donation website on Amazon Web Services (AWS). You anticipate a large and undetermined amount of traffic that wi create many database writes. To be certain that you...
-
According to the conservation of angular momentum, when the mass of a rotating object becomes more concentrated, what will happen to the rotation rate? a. It will increase b. It will decrease c. It...
-
You must describe how you followed the recipes and used the appropriate cookery methods and processes to achieve the desired: Appearance Colour Consistency Moisture content Shape Size Structure Taste...
-
If you or your spouse or common-law partner made a gift of money or other property to certain institutions, you may be able to claim federal and provincial or territorial non-refundable tax credits...
-
Discuss the rules how combinations of resistors can be combined into equivalent resistances. Your discussion should include, at least:
-
"Would it be possible for me, SFC Nanola, Ed V. 140-04-7125, to qualify for MILPER Number 24-012 Temporary Change to Timeline for Requesting Voluntary Retirement from Active Federal Service?...
-
Differentiate the function. H(z)=ln[(d 2 -z 2 )/(d 2 +z 2 )]^ 1/2 Natural log of the square rootof (d 2 -z 2 ) dividedby (d 2 +z 2 ).
-
1. Following are information about Alhadaf Co. Cost incurred Inventory Purchases Sales Adverting expense Salary Expense Depreciation Beginning Inventory Ending Inventory Amount 118,000 350.000 90,000...
-
What is the Page Layout view?
-
Which ratios are usually formatted as numbers?
-
Why is the point-and-click method of cell referencing easier than typing references directly into worksheet cells?
-
Climate change (a) is a subject most scientists disagree about. (b) refers to the effect of greenhouse gases on atmospheric temperature. (c) refers to temperature increases in all of Earths climate...
-
Climates farther from the equator usually have (a) lower average temperatures. (b) higher solar intensity. (c) more precipitation. (d) more water.
-
What method uses records of past earthquakes to predict future earthquakes? What are the limitations of this method?
Study smarter with the SolutionInn App