Microsoft
70-457 · Question #35
70-457 Question #35: Real Exam Question with Answer & Explanation
The correct answer is B. WITH CTEDupRecords. See the full explanation below for the reasoning.
Question
You administer a Microsoft SQL Server 2012 database that includes a table named Products. The Products table has columns named Productld, ProductName, and CreatedDateTime. The table contains a unique constraint on the combination of ProductName and CreatedDateTime. You need to modify the Products table to meet the following requirements: - Remove all duplicates of the Products table based on the ProductName column. - Retain only the newest Products row. Which Transact-SQL query should you use?
Options
- AWITH CTEDupRecords
- BWITH CTEDupRecords
- CWITH CTEDupRecords
- DWITH CTEDupRecords
Community Discussion
No community discussion yet for this question.