Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/02/2005, 12:21
Avatar de RsOfT
RsOfT
 
Fecha de Ingreso: marzo-2002
Ubicación: InterNET
Mensajes: 1.121
Antigüedad: 22 años, 2 meses
Puntos: 7
Ya se de donde es que el SUM está sacando los demás valores.
Quité todos los Group by y me devuelve esto:

Código:
Empleado_ID Cod_Depto  Desc_Depto                                         Cod_Dir    Desc_Dir                                           CONCOD      TNOCVE CPRANO      CPRMAC CPRPER CODCIA CNOCVE TRNTXT                                             NUMCTA     TRNCEN     Horas                 Monto                 
----------- ---------- -------------------------------------------------- ---------- -------------------------------------------------- ----------- ------ ----------- ------ ------ ------ ------ -------------------------------------------------- ---------- ---------- --------------------- --------------------- 
406         07040100   MANTENIMIENTO DE PLANTA                            07000000   DIRECCION DE OPERACIONES                           80          SN     2004        12     24     RICA   AG     HORAS EXTRAS 35%                                   6101030    130102     4.0000                439.4700
406         07040100   MANTENIMIENTO DE PLANTA                            07000000   DIRECCION DE OPERACIONES                           80          SN     2004        12     24     RICA   AG     HORAS EXTRAS 35%                                   6101030    130102     4.0000                439.4700
406         07040100   MANTENIMIENTO DE PLANTA                            07000000   DIRECCION DE OPERACIONES                           85          SN     2004        12     23     RICA   AG     HORAS EXTRAS 100%                                  6101040    130102     8.0000                1178.6800
406         07040100   MANTENIMIENTO DE PLANTA                            07000000   DIRECCION DE OPERACIONES                           80          SN     2004        12     23     RICA   AG     HORAS EXTRAS 35%                                   6101030    130102     3.5000                348.0700
406         07040100   MANTENIMIENTO DE PLANTA                            07000000   DIRECCION DE OPERACIONES                           80          SN     2004        12     23     RICA   AG     HORAS EXTRAS 35%                                   6101030    130102     3.5000                348.0700

(5 row(s) affected)
Ya entiendo porque me da 8, 7 y 8.
__________________
.::RsOfT::.
--El que se aferra a lo conocido, nunca conocerá lo desconocido--
--Es intentando lo imposible como se realiza lo posible--
--Es de pésimo gusto contentarse con algo mediocre cuando lo excelente está a nuestro alcance--