***SOMENTE PARA CODIGO DE BARRAS DUPLICADOS DA TABELA PROD select codind from prod group by codind having Count(codind)>1 delete from prod where codind in (select codind from prod group by codind having Count(codind)>1) and not cod in (select Min(cod) from prod group by codind having Count(codind)>1)