Cita:
Empezado por rulo_m
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