Ver Mensaje Individual
  #1  
Antiguo 26-02-2005
IVAND IVAND is offline
Miembro
 
Registrado: may 2003
Ubicación: ECUADOR
Posts: 523
Reputación: 21
IVAND Va por buen camino
invalid expression in the select ....

hola a todos

Trabajo con firebird 1 ahora me estoy cambiando a firebird 1.5 pero he tenido algunos inconvenientes entre ellos el siguiente

Código:
select c.key_cab_fac,
 (Select sum(t2.total)
   From form_pago t2
   Where t2.key_cab_fac=t1.key_cab_fac
   And t2.cod_pago=101) as cheq
From cab_fac c , form_pago t1
Where c.estado='T'
And c.key_cab_fac=t1.key_cab_fac 
Group by c.key_cab_fac
Este mismo query funciona en Firebird 1 y en firebird 1.5 no me da el siguiente mensaje

Invalid expression in the select list (not contained in either an aggregate function on the GROUP BY clause)

De antemano Gracias
__________________
IVAND
Responder Con Cita