Ver Mensaje Individual
  #18  
Antiguo 28-02-2008
Avatar de rulo_m
rulo_m rulo_m is offline
Miembro
 
Registrado: dic 2007
Posts: 70
Reputación: 17
rulo_m Va por buen camino
Código SQL [-]
Select Distinct Co1.NUM_COTIZACION,
(Select Max(Co2.NUM_SUBCOTIZACION) 
from SIE_COTIZACIONES AS Co2 where Co1.NUM_COTIZACION =Co2.NUM_COTIZACION)from SIE_COTIZACIONES AS Co1

el AS va despues del from xxxxxx

Última edición por rulo_m fecha: 28-02-2008 a las 20:52:33.
Responder Con Cita