Ver Mensaje Individual
  #4  
Antiguo 05-07-2015
Delphitest Delphitest is offline
Miembro
 
Registrado: sep 2006
Ubicación: Salamanca-España
Posts: 249
Reputación: 18
Delphitest Va por buen camino
Muchas gracias,

así da gusto, la solución y un manual de apoyo

He sufrido un poco con los paréntesis pero al final funciona perfectamente, ha tenido que quedar así:

Código SQL [-]
SELECT SUM( SE.IMPORTE ) as totalimporte
FROM (SEGUROS SE
INNER JOIN FINCAS FI ON SE.IDFINCA = FI.IDFINCA)
INNER JOIN OPERACIONES OP ON (FI.IDOPERACION = OP.IDOPERACION and OP.IDOPERACION = :OPER_ID)


Gracias por vuestra ayuda
__________________
Mi proyecto paso a paso (Parte I)
Responder Con Cita