Question
Note: These problems make use of the Pine Valley Furniture Company database tables. Write the appropriate SQL statement that either answers the questions or retrieves
Note: These problems make use of the Pine Valley Furniture Company database tables. Write the appropriate SQL statement that either answers the questions or retrieves the requested values. Use the following for the date criteria: SUBSTRING(convert(varchar, orderdate, 126), 1, 7) ='2015-10' 7-51. Write a SQL query to list each customer who bought at least one product that belongs to product line Cherry Tree in October 2015. List each customer only once. 7-52. Modify 7-51 so that you include the number of products in product line Cherry Tree that the customer ordered in October 2015. 7-53. Modify 7-52 so that the list includes the number of products each customer bought in each product line in October 2015. 7-60. Produce a list of all the products (show product description) and the number of times each product has been ordered 7-65. Display the customer ID, name, and order ID for all customer orders. For those customers who do not have any orders, include them in the display once, with a 0 value for OrderID:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started