Ver Mensaje Individual
  #4 (permalink)  
Antiguo 20/04/2016, 06:25
rbczgz
 
Fecha de Ingreso: noviembre-2003
Ubicación: Zaragoza, España
Mensajes: 1.257
Antigüedad: 20 años, 5 meses
Puntos: 154
Respuesta: Hacer SUM correctamente

Hola ivan7,

No es por entrometerme, pero sigues sin responderle a gnzsoloyo:

Cita:
Iniciado por gnzsoloyo Ver Mensaje
En otro foro ya te pregunté algo que NO has respondido: ¿Probaste la consulta en MySQL?
Simplemente tienes que copiar la query y ejecutrarla con el phpMyadmin:
Código SQL:
Ver original
  1. SELECT SUM(sueldo) AS sueldo,
  2. SUM(antiguedad) AS antiguedad,
  3. SUM(Dif_Ant) AS Dif_Ant,
  4. SUM(Turnicidad) AS Turnicidad,
  5. SUM(C_Puesto) AS C_Puesto,
  6. SUM(C_Niv_Retr) AS C_Niv_Retr,
  7. SUM(C_Destino) AS C_Destino,
  8. SUM(C_Prof_1) AS C_Prof_1,
  9. SUM(C_Prof_2) AS C_Prof_2,
  10. SUM(C_Prof_3) AS C_Prof_3,
  11. SUM(C_Prof_4) AS C_Prof_4
  12. FROM nomisferio
Yo no te sé ayudar, pero gnzsoloyo seguro que puede si le haces caso, claro...