1.
update QQ
set QQmc=replace(QQmc,'甲','')2.delete t
from QQ t
where right(QQmc,1)='甲'
      and 
      exists(select 1 
                from QQ 
                    where t.QQmc like '%'+QQmc+'%' 
                          and QQbh<>t.QQbh)3.select * from QQ t
where exists(select 1 
                from QQ 
                    where (t.QQmc like '%'+QQmc+'%' 
                          or QQmc like '%'+t.QQmc+'%')
                          and QQlb<>t.QQlb)
order by left(QQmc,2),QQbh