Create table Fruits
(Fruit varchar(10))
insert into Fruits
select 'apple' Union all
select 'apple' Union all
select 'grapes' Union all
select 'banana' Union all
select 'grapes' Union all
select 'blueberry' Union all
select 'grapes' Union all
select 'blueberry' Union all
select 'apple' Union all
select 'plum' Union all
select 'plum' Union all
select 'blueberry' Union all
select 'banana' Union all
select 'blueberry' Union all
with cte
As
(
select Row_number() over ( partition by Fruit order by Fruit desc) as id,Fruit
From Fruits
)
Delete From cte where id >1
select * from Fruits