![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
14/05/2006, 01:08
|
![Avatar de B**](http://static.forosdelweb.com/customavatars/avatar126939_1.gif) | | | Fecha de Ingreso: enero-2006 Ubicación: Monterrey,Mexico
Mensajes: 952
Antigüedad: 19 años Puntos: 3 | |
Pues en tu consulta no le estas poniendo q te haga la suma ,solo le estas pidiendo la columna total del trabajador..seria:
select trabajador,SUM (total) from gastos where trabajador='usuario'
Prueba eso haber si funciona... |