Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Apache Cassandra Development

Authors: Vivek Mishra

1st Edition

1484201426, 9781484201428

More Books

Students also viewed these Databases questions

Question

=+j Improve the effectiveness of global and virtual teams.

Answered: 1 week ago