Question: MYSQL DATABASE: 2. Write a query that lists all members that have placed orders and the total amount spent per customer with the following criteria:

MYSQL DATABASE:

2. Write a query that lists all members that have placed orders and the total amount spent per customer with the following criteria: a. An order amount greater than the average order amount for all customers. b. Consider only orders placed in July 1997. c. Make sure that the member considered has not returned any items. Note: You may need to populate some of the tables with sample data to see a result

3. Using the tables available to you in the TABLES section on D2L, create your own complex query. List the criteria that it addresses in the same format as Question 2. Show the output and explain why such a query would be useful. Try to reference at least 3 tables and use one or two columns from those tables. The query should try to involve concepts such as: functions, mathematical calculations, subqueries, and formatting to ensure it is complex enough.

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 Databases Questions!