Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am using MySQL. The first image is what I need help on. The other three are to show you the columns and tables. Thank

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

I am using MySQL. The first image is what I need help on. The other three are to show you the columns and tables. Thank you so much.

Q.6) (20 points) Write a SELECT statement that answers this question: What is the total amount ordered for each product? Return these columns as shown in the screenshot: The product name from the Products table The total amount for each product in the Order ltems (Hint: You can calculate the total amount by subtracting the discount amount from the item price and then multiplying it by the quantity) Include a row that gives the grand total over all products Result Grid t Filter Rows a Search product name product total Fender Precision 559.99 978.60 Fender Stratocaster Gibson Les Paul 2517.90 Gibson SG 1208.16 Ludwig 5-piece Drum Set with Cymbals 489.99 253.15 Rodriguez Caballero 11 Tama 5-Piece Drum Set with Cymbals 679.99 Washburn D10S 598.00 303.79 Yamaha FG700S 7589.57 NULL

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

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

1st Edition

1597496251, 978-1597496254

More Books

Students also viewed these Databases questions

Question

Explain exothermic and endothermic reactions with examples

Answered: 1 week ago

Question

Write a short note on rancidity and corrosiveness.

Answered: 1 week ago

Question

=+8. Why is productivity important?

Answered: 1 week ago

Question

=+ 9. What is inflation and what causes it?

Answered: 1 week ago

Question

=+6. What does the invisible hand of the marketplace do?

Answered: 1 week ago