Ver Mensaje Individual
  #17  
Antiguo 28-02-2008
Yun-i Yun-i is offline
Miembro
 
Registrado: ene 2008
Posts: 125
Reputación: 17
Yun-i Va por buen camino
Cita:
Empezado por rulo_m Ver Mensaje
ya intentaste con el cotizaciones AS co1?
Código Delphi [-]
ADOQuery2.SQL.Add('Select Distinct as Co1.NUM_COTIZACION,(Select Max(as Co2.NUM_SUBCOTIZACION) from SIE_COTIZACIONES Co2 where Co1.NUM_COTIZACION =Co2.NUM_COTIZACION)');
ADOQuery1.SQL.Add('from SIE_COTIZACIONES  Co1');

este es el codigo que he metido pero donde poner as no lo se

ahi lo puse y me marca error al ejecutarlo
gracias por su tiempo
Responder Con Cita