Question: Write a query to retrieve all products that had been ordered by customer id = 2. The SQL query should show order id, order
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.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
