Ver Mensaje Individual
  #2  
Antiguo 22-08-2008
Avatar de TOPX
TOPX TOPX is offline
Miembro
 
Registrado: may 2008
Ubicación: Bogotá
Posts: 527
Reputación: 17
TOPX Va camino a la fama
Código SQL [-]
  Select T.servicio, T.variable, Sum(cant), Sum(importe)
  From Remitos R
   Inner Join Trabajos T On (r.id_remito = T.id_remito)
  Where R.id_remito = 10
  Group By T.servicio, T.variable
__________________
"constructive mind, destructive thoughts"
Responder Con Cita