Ver Mensaje Individual
  #15  
Antiguo 19-06-2013
Avatar de RONPABLO
[RONPABLO] RONPABLO is offline
Miembro Premium
 
Registrado: oct 2004
Posts: 1.514
Reputación: 21
RONPABLO Va por buen camino
y que tan lento o rápido es de esta forma??

Código SQL [-]
with t1 as(
SELECT N_EXP ,MAX(ord) as ord FROM temp GROUP BY N_EXP),

SELECT t2.N_EXP, 
       t2.ASUNTO,
       t2.FECHA,
       t2.FOLIOS,
       t1.ord
FROM TEMP t2
inner t1 on t1.N_EXP = t2.N_EXP
__________________
"Como pasa el tiempo..... ayer se escribe sin H y hoy con H"
Responder Con Cita