declare @i int = 1;
;with s1(id,names,cities)
as
(select 1 ,'a' ,'test<br/><br/>hyd<br/><br/><br/>blr<br/>mumbai<br/><br/><br/><br/>'
union all
select 2,'b','test<br/><br/>hyd<br/><br/><br/>blr<br/>mumbai<br/><br/><br/><br/>'
union all
select 3,'c','test<br/><br/>hyd<br/><br/><br/>blr<br/>mumbai<br/><br/><br/><br/>'
union all
select 4,'d','test<br/><br/>hyd<br/><br/><br/>blr<br/>mumbai<br/><br/><br/><br/>'
union all
select 5,'f','test<br/><br/>hyd<br/><br/><br/>blr<br/>mumbai<br/><br/><br/><br/>')
select * into #s1 from s1
select * from #s1
while(@i < 20)
begin
update #s1 set cities = replace(cities, '<br/><br/>', '<br/>')
set @i = @i+1
end
select * from #s1
drop table #s1