Ver Mensaje Individual
  #3 (permalink)  
Antiguo 31/01/2013, 17:05
Avatar de jpogsistem
jpogsistem
 
Fecha de Ingreso: diciembre-2001
Mensajes: 2.405
Antigüedad: 22 años, 4 meses
Puntos: 4
Respuesta: Script de Migración - Ignorar PK Repetida

Cita:
Iniciado por Libras Ver Mensaje
si puedes hacer algo asi

select * from tabla group by id having count(id)=1

select * from(
select row_number() over (partition by id order by id) as rn, * from tabla
) as t1 where rn=1

saludos!

Ufff......grande Maestro.....gracias.....justo lo que necesitaba.
__________________
EL LIMITE ES EL UNIVERSO