Question: Create SQL code to display the CustomerName, TotalSales and ProductName of the customer with the most sales in 2 0 1 4 thru 2 0

Create SQL code to display the CustomerName, TotalSales and ProductName of the customer with the most sales in 2014 thru 2017 using the Orders, Sales, Products, Customer tables
Use a series of SubqueriesLinks to an external site. to achieve the answer (#1064- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Order o ON c.CustomerID = o.CustomerID
INNER JOIN Sale s ON o.OrderID = s.' at line 9) from the one i copied here.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!