Microsoft
70-457 · Question #61
Your database contains tables named Products and ProductsPriceLog. The Products table contains columns named ProductCode and Price. The ProductsPriceLog table contains columns named ProductCode…
The correct answer is A. UPDATE Products SET Price = Price - 1.05. See the full explanation below for the reasoning.
Question
Your database contains tables named Products and ProductsPriceLog. The Products table contains columns named ProductCode and Price. The ProductsPriceLog table contains columns named ProductCode, OldPrice, and NewPrice. The ProductsPriceLog table stores the previous price in the OldPrice column and the new price in the NewPrice column. You need to increase the values in the Price column of all products in the Products table by 5 percent. You also need to log the changes to the ProductsPriceLog table. Which Transact-SQL query should you use?
Options
- AUPDATE Products SET Price = Price - 1.05
- BUPDATE Products SET Price = Price - 1.05
- CUPDATE Products SET Price = Price - 1.05
- DUPDATE Products SET Price = Price - 1.05
How the community answered
(37 responses)- A70% (26)
- B11% (4)
- C14% (5)
- D5% (2)
Community Discussion
No community discussion yet for this question.