Ver Mensaje Individual
  #11 (permalink)  
Antiguo 30/01/2013, 11:01
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 registros duplicados sin GROUP BY

Pues hazlo asi:


select * from(
SELECT row_number() over(partition by a.gl_no order by a.gl_no) as rn, * FROM GLOSARIOS AS A
JOIN GLOSARIOS_ARTICULO AS B ON A.GL_No = B.GL_No
WHERE A.GL_No = '441'
) t1

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