Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Previous equation: SELECT product_id , sku , original_price , current_price , on_markdown , original_price - current_price AS discount_amount , ROUND(((original_price - current_price)/(original_price*1.00)),2) AS discount_pct ,

Previous equation:

SELECT product_id

, sku

, original_price

, current_price

, on_markdown

, original_price - current_price AS discount_amount

, ROUND(((original_price - current_price)/(original_price*1.00)),2) AS discount_pct

, ROUND((((original_price - current_price)/(original_price*1.00))*original_price),2) AS check

FROM retail.products

WHERE on_markdown = 1

Question:

Determine what the sale price would be for each item if the Marketing team went off the rails and implemented a sale for 35% off the original price of all items!

Once again, add this new column onto the end of your existing query and name it discount_35.

Hints:

There are a couple different ways to get the right number for this last column.

You can either multiply the necessary field by 0.65, which is 1 - 0.35.

Or you can multiply the necessary field by 0.35 and subtract that from 1. Either way should work!

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

Statistical And Scientific Database Management International Working Conference Ssdbm Rome Italy June 21 23 1988 Proceedings Lncs 339

Authors: Maurizio Rafanelli ,John C. Klensin ,Per Svensson

1st Edition

354050575X, 978-3540505754

More Books

Students also viewed these Databases questions