Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/09/2011, 11:50
Avatar de Libras
Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 9 meses
Puntos: 774
Respuesta: Eliminar duplicados SQL

En sql server seria algo asi :)

delete from tabla
where id in (
select count(id) id, id from tabla
group by id
having count id>2)


Saludos!
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me