180k views
4 votes
Write a SELECT statement that returns these columns from the Products table: The list_price column The discount_percent column A column named discount_amount that uses the previous two columns to calculate the discount amount and uses the ROUND function to round the result so it has 2 decimal digits Use column aliases for any columns that contain a function or a formula.

User Virb
by
6.6k points

1 Answer

3 votes

Answer:

Check the explanation

Step-by-step explanation:

The SELECT statement that returns these columns are:

SELECT

list_price,

discount_percent,

ROUND (list_price * discount_percent / 100,2) AS discount_amount

FROM

products;

----------------------------------------------------------------------

User Sethbc
by
6.5k points