Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the following SQL Statement senberg School of Management, UMass Amherst ui For each product, calculatethe number of orders and the total sales (standard price*

Write the following SQL Statement

image text in transcribed

senberg School of Management, UMass Amherst ui For each product, calculatethe number of orders and the total sales (standard price* ordered quantity) Display product ID, product description, product line name and the calculated data if the ordered product is priced above $300 and the number of orders is greater than 2. Sort the result set first by the number of orders in descending order and then by the total sales in descending order SELECT COUNT(Order_ID), SUM (Standard-Price. Ordered-Quantity) AS Tota!Sales FROM Order Line_TAS ol, Product_T AS p T AS ol, Product TAS p AND Standard Price 300 GROUP BY HAVING ORDER BY >2

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

Expert Oracle Database Architecture

Authors: Thomas Kyte, Darl Kuhn

3rd Edition

1430262990, 9781430262992

More Books

Students also viewed these Databases questions