Ver Mensaje Individual
  #10  
Antiguo 07-06-2007
Avatar de linuz
linuz linuz is offline
Miembro
 
Registrado: sep 2004
Posts: 88
Reputación: 20
linuz Va por buen camino
Me respondo a mi mismo, jeje

Me he olvidado de un detalle....

Código SQL [-]
select sum(F.importe) TOTAL_FACTURAS, O.Codigo, O.Descripcion
 from facturas F left join obras O on (F.Codobra = O.Codigo)
 where O.Cliente = 1
 Group by O.Codigo, O.descripcion

Perdón....

Un saludo
Responder Con Cita