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 = 'ShirtsExplanation / Answer
SELECT productID,productName,1.1*preTaxPrice As salePrice
FROM Products
WHERE category='Pants' or category='Shirts';
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.