Microsoft
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…
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
How the community answered
(21 responses)- A14% (3)
- B76% (16)
- C5% (1)
- D5% (1)
Community Discussion
No community discussion yet for this question.