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 11:00
The editing of digital photos us about the same level of difficulty as editing an analog photo
Answers: 2
question
Computers and Technology, 22.06.2019 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
In the context of the box model, what is the difference between a margin and a padding? a. a padding lies outside a box border, while a margin lies inside it. b. a padding lies inside a box border, while a margin lies outside it. c. a padding can be adjusted independently, while a margin depends on the size of its box. d. a padding depends on the size of its box, while a margin can be adjusted independently.
Answers: 3
question
Computers and Technology, 23.06.2019 15:00
1. which of the following statements are true about routers and routing on the internet. choose two answers. a. protocols ensure that a single path between two computers is established before sending packets over it. b. routers are hierarchical and the "root" router is responsible for communicating to sub-routers the best paths for them to route internet traffic. c. a packet traveling between two computers on the internet may be rerouted many times along the way or even lost or "dropped". d. routers act independently and route packets as they see fit.
Answers: 2
You know the right answer?
Use the w3schools orders database and develop sql statements. you should test you sql statements tha...
Questions
question
Mathematics, 22.05.2020 22:04
question
Mathematics, 22.05.2020 22:04
question
Biology, 22.05.2020 22:04
question
Mathematics, 22.05.2020 22:04
Questions on the website: 13722361