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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started