Ver Mensaje Individual
  #5 (permalink)  
Antiguo 04/09/2008, 08:19
Avatar de flaviovich
flaviovich
 
Fecha de Ingreso: agosto-2005
Ubicación: Lima, Peru
Mensajes: 2.951
Antigüedad: 18 años, 8 meses
Puntos: 39
Respuesta: eliminar registros

Cita:
delete from tu_tabla t1
left join (
select NOMBRE_CALLE, ALTURA, FECHA
from tu_tabla
group by NOMBRE_CALLE, ALTURA, FECHA
having count(1)>1
) t2 on t1.NOMBRE_CALLE=t2.NOMBRE_CALLE and t1.ALTURA=t2.ALTURA and t1.FECHA=t2.FECHA
where t2.NOMBRE_CALLE is null
__________________
No repitamos temas, usemos el Motor de busquedas
Plantea bien tu problema: Ayúdanos a ayudarte.