Suppose we have a table with duplicate entries as follows:
CREATE TABLE T1
(
ProductName varchar(50)
)
INSERT INTO T1
VALUES
('Computer'),
('Computer'),
('Printer'),
('Printer'),
('Printer'),
('Scanner'),
('Scanner'),
('Scanner'),
('Scanner'),
('Camera'),
('Flash Drive'),
('Flash Drive')
You can also deleted the duplicates using the following approach