70-457 · Question #35
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…
Sign in or unlock 70-457 to reveal the answer and full explanation for question #35. The question stem and answer options stay visible for context.
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
Unlock 70-457 to see the answer
You've previewed enough free 70-457 questions. Unlock 70-457 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.