Question
the lifestyle manager decides to give customers who bought three or more units of the same product in the same order a 20 percent discount.
the lifestyle manager decides to give customers who bought three or more units of the same product in the same order a 20 percent discount. Show order id, product id, price, quantity and discounted price for those discounted in orderdetails
I have the sql working except I cannot figure out the discounted price
SELECT OrderID, ProductID, quantity, Price, Price *0.20 AS "Discounted Price" From Sales.OrderDetails where OrderID >1 and quantity >2
Example
OrderID ProductID Price Quantity Discounted Price
2 4 99.99 6 79.99200
In my statement about I am not getting 79.99200 the rest I have is correct. Help please
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started