SQL: delete duplicated rows
How to delete the rows having the duplicated values of one or more columns and considered as duplicates? The example in Transact SQL is below.
SET NOCOUNT ON;
CREATE TABLE #t (
product_name nvarchar(20),
vendor_name nvarchar(20)
)
GO
INSERT INTO #t (product_name, vendor_name) VALUES
('SQL Server', 'Microsoft'),
('Oracle', 'Oracle'),
('DB2 …