Viewing 3 posts - 1 through 3 (of 3 total)
I am not aware that you can do DML operations on CTEs. I learned this today. This works well too and certainly better than looping. Thank you for posting your...
February 1, 2016 at 3:41 pm
This is what I mean by the unique identifier using a ROW_NUMBER() methodology
CASE 1:
CREATE TABLE Duplicates(RowID INT IDENTITY (1,1), Col1 INT, Col2 VARCHAR(100))
INSERT INTO Duplicates VALUES (100, 'ABC'),(200, 'ABC'),(300, 'BBB'),(300,...
February 1, 2016 at 2:49 pm
The author's posted solution works and it DOESN'T DELETE ALL Duplicates. (If there are 3 dup rows it deletes 2 and leaves 1). So it works. Also I guess people...
February 1, 2016 at 2:07 pm
Viewing 3 posts - 1 through 3 (of 3 total)