Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Complete the two blanks in the following SQL query to retrieve the productID , p

ID: 3885117 • Letter: C

Question

Complete the two blanks in the following SQL query to retrieve the productID, productName and salePrice of products that belong to the categories pants or shirts. The salePrice of each product is not stored as an attribute, but is instead calculated by adding 10 percent to the preTaxPrice. Your answer will be marked incorrect if there is a spelling mistake, missing spaces, or unnecessary spaces.

SELECT productID, productName, FROM Products WHERE category = 'Pants' AS salePrice category = 'Shirts

Explanation / Answer

SELECT productID,productName,1.1*preTaxPrice As salePrice

FROM Products

WHERE category='Pants' or category='Shirts';

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote