subject

Use the w3schools orders database and develop sql statements. you should test you sql statements that have been thoroughly tested in w3schools.

correct response to any of the three questions will give you full credit. if you submit correct responses for all 4 questions, you will get 1 point bonus credit.

1) suppose that you want reward the customers with $2 for each order they placed. develop an sql statement that shows the names of the customers along with the total reward that they would receive.
2) develop an sql statement to show the total order value during the year 1996. (hint: the following statement gives order value for the order with orderid = 10248 select sum(o. quantity*p. price) from orderdetails o, products p where o. productid = p. productid and orderid=10248 )
3) suppose that you want reward the customers with 2% of their total order value for all their orders placed in the year 1997. develop an sql statement that shows the names of the customers along with the total reward that they would receive.
4) develop a query to show average number of units (average quantity) sold for each product. your query should show the product name, average quantity for each product sold.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:00
When you collaborate or meet with a person or group online, it is called
Answers: 1
question
Computers and Technology, 22.06.2019 12:40
How do i get the most points, without any effort?
Answers: 2
question
Computers and Technology, 22.06.2019 17:00
The two main ways in which marketers address the competition with their strategies are by satisfying a need better than a competition and by
Answers: 2
question
Computers and Technology, 22.06.2019 20:10
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
You know the right answer?
Use the w3schools orders database and develop sql statements. you should test you sql statements tha...
Questions