Ver Mensaje Individual
  #8  
Antiguo 05-05-2003
__cadetill __cadetill is offline
Miembro
 
Registrado: may 2003
Posts: 3.387
Reputación: 25
__cadetill Va por buen camino
jejejeje, claro que te da un error

debes añadir al SQL una clausula Group By

Código:
select a.nombre, sum(horas)
from parte p, linParte l, actividad a
where o.obra = 'Obra que quiero' and
       l.parte = p.parte and
       a.actividad = l.actividad
group by a.nombre
En que estaria pensando al contestarte!!!! :P
Responder Con Cita