Why am I getting this error and how can I fix it? 3 rows in set (0.03
Fantastic news! We've Found the answer you've been seeking!
Question:
Why am I getting this error and how can I fix it?
Transcribed Image Text:
3 rows in set (0.03 sec) mysql> SELECT COUNT(*) AS RETURNED_AMOUNT, Orders.SKU AS PRODUCT_SKU, Orders.Description AS PRODUCT DESCRIPTION -> FROM Orders INNER JOIN RMA ON Orders.OrderID = RMA.OrderID -> INNER JOIN Customers ON Orders. CustomerID = Customers.CustomerID -> WHERE UPPER (State) IN ("WASHINGTON", "OREGON", "IDAHO", "MONTANA") -> WHERE UPPER (Status) = "COMPLETE" ->GROUP BY PRODUCT_SKU -> ORDER BY RETURNED_AMOUNT DESC -> LIMIT 3; ERROR 1064 (42000): 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 'WHERE UPPER(Status) = "COMP LETE" GROUP BY PRODUCT_SKU ORDER BY RETURNED_AMOUNT D' at line 5 mysql> 3 rows in set (0.03 sec) mysql> SELECT COUNT(*) AS RETURNED_AMOUNT, Orders.SKU AS PRODUCT_SKU, Orders.Description AS PRODUCT DESCRIPTION -> FROM Orders INNER JOIN RMA ON Orders.OrderID = RMA.OrderID -> INNER JOIN Customers ON Orders. CustomerID = Customers.CustomerID -> WHERE UPPER (State) IN ("WASHINGTON", "OREGON", "IDAHO", "MONTANA") -> WHERE UPPER (Status) = "COMPLETE" ->GROUP BY PRODUCT_SKU -> ORDER BY RETURNED_AMOUNT DESC -> LIMIT 3; ERROR 1064 (42000): 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 'WHERE UPPER(Status) = "COMP LETE" GROUP BY PRODUCT_SKU ORDER BY RETURNED_AMOUNT D' at line 5 mysql>
Expert Answer:
Answer rating: 100% (QA)
The error youre encountering is due to the use of the keyword MHERE in your SQL ... View the full answer
Related Book For
Managerial Accounting An Integrative Approach
ISBN: 9780999500491
2nd Edition
Authors: C J Mcnair Connoly, Kenneth Merchant
Posted Date:
Students also viewed these databases questions
-
Whitley Construction Company is in the home remodeling business. Whitley has three teams of highly skilled employees, each of whom has multiple skills involving carpentry, painting, and other home...
-
Discuss the FIFO inventory cost method. Why would the FIFO inventory cost method be a good choice? Would the FIFO inventory method follow the actual flow of inventory?
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
After reviewing fractal dimension in class this week, I want to revisit it with a couple of computational examples. The deletion fractal below (sometimes called a Sierpinksi hexagon) is constructed...
-
A ball of mass m can perform un-damped harmonic oscillations about the point x = 0 with natural frequency coo. At the moment t = 0, when the ball was in equilibrium, a force Fx = Fo cos cot...
-
Featherstone Inc. reported the following data: Net income $296,000 Depreciation expense 113,100 Gain on disposal of equipment 58,200 Decrease in accounts receivable 71,300 Decrease in accounts...
-
How would you distinguish objects from classes? Provide an example. a. Comment on the statement: A class is an abstraction of objects. b. Comment on the statement: A class is a template for creating...
-
1. How much would the Meyers have to put down if the lender required a minimum 20 percent down payment? Could they afford it? 2. Given that the Meyers want to put only $25,000 down, how much would...
-
Suppose an unlevered firm issues $1400 in perpetual debt at a cost of debt of 9.4 percent. If the corporate tax rate is 18 percent, what is the change in the firm's value? Ignore financial distress...
-
Sage Learning Centers was established on July 20, 2016, to provide educational services. The services provided during the remainder of the month are as follows: July 21. Issued Invoice No. 1 to J....
-
Consider the dichromate ion(Cr 2 O 7 -2 ). It has no metal tometal nor oxygen to oxygen bonds. Draw a Lewis structure for thedichromate ion. Consider chromium to have six valenceelectrons.
-
A(n) _____________ is an unwritten rule of behavior.
-
Discuss the resources your campus has in place to support the job-seeking process. Do you plan to use these resources?
-
Explain the goal of workplace surveillance systems.
-
What are the qualities youre looking for in an employer? Related to some of the information in this chapter, how could you retrieve information to see if those qualities exist?
-
______________ refers to the development of a plan that emphasizes goals, initiatives, strategies, and targets utilized to help employees strive for a shared vision and commitment to the core values...
-
Which of the following statements is true regarding HTTP? (a) Web browsers use only HTTP as a communication protocol withservers (b) It does not maintain any connection information on...
-
Provide a draft/outline of legal research involving an indigenous Canadian woman charged with assault causing bodily harm under (Sec 267b) of the Criminal Code, where the crown wants a 12-month jail...
-
Sitwell Services cleans offices. It runs several cleaning crews that are given standard times for cleaning certain spaces. Given the experience of the crew, these standards can allow for more or less...
-
Hightower Enterprises manages apartment buildings for various small investors. It spends a significant amount of time on two activities: maintenance and rent collection. Sort the following costs into...
-
Describe the three key steps that make up SCM analyses.
-
In Appendix 16A.1, we illustrate the calculation of a standard error for the marginal effect in a probit model of transportation, Example 16.4. In the appendix, the calculation is for the marginal...
-
In Example 16.3, we illustrate the calculation of the likelihood function for the probit model in a small example. a. Calculate the probability that \(y=1\) if \(x=1.5\), given the values of the...
-
In Examples 16.2 and 16.4, we presented the linear probability and probit model estimates using an example of transportation choice. The logit model for the same example is \(P(A U T...
Study smarter with the SolutionInn App