Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL #Display Category Name, Product Name, Customer Company Name and TotalPrice which is a calculated column (UnitPrice * Quantity * (1 Discount)). Use the Order

SQL

#Display Category Name, Product Name, Customer Company Name and TotalPrice which is a calculated column (UnitPrice * Quantity * (1 Discount)). Use the Order Details table to get the UnitPrice. Only return rows that have a category name of Produce, Seafood, or Beverages and have a TotalPrice greater than or equal to $200+99. Sort the result set by Category Name and then by Product Name and then by TotalPrice from highest to lowest. (hint: this query needs 5 tables)

# Using the same criteria from Query #6, display the number of line items (Order Details table) for each category and the average TotalPrice for each category.

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

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

understand the rapidly changing nature of advertising;

Answered: 1 week ago

Question

1. Television more Over watching faceing of many problems ?

Answered: 1 week ago

Question

Is there a link between chronic stress and memory function?

Answered: 1 week ago