Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Write a SQL statement that selects these columns from the Products table: product_name The product_name column list_price The list price column discount_percent The discount_percent

image text in transcribed

3. Write a SQL statement that selects these columns from the Products table: product_name The product_name column list_price The list price column discount_percent The discount_percent column discount_amount A column that's calculated from the previous two columns discount_price A column that's calculated from the previous three columns Only return products with list price greater than 200 and less than 800 Sort it by product_name in descending sequence. 4. Write a SQL statement that selects these columns from the Order_Items table: item_id The item_id column item_price The item_price column discount_amount The discount_amount column quantity The quantity column price_total A column that's calculated by multiplying the item price by the quantity discount_total A column that's calculated by multiplying the discount amount by the quantity item_total A column that's calculated by subtracting the discount amount from the item price and then multiplying by the quantity Only return rows where the item_total is greater than 455. Sort the result set by item total in descending sequence

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

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

Compute the entity-level taxes on S corporations.

Answered: 1 week ago

Question

3. How can policymakers influence a nations saving rate?

Answered: 1 week ago