
28/05/2012, 10:40
|
 | | | Fecha de Ingreso: mayo-2012 Ubicación: Santo Domingo, Dominican Republic
Mensajes: 12
Antigüedad: 12 años, 9 meses Puntos: 0 | |
Respuesta: Vistas de los meses del año. Select datepart(year, Fecha), Sum(MontoAcumulado), Empleado
from Empleados
where datediff(year, Fecha, getdate()) <= 7
group by Empleado, datepart(year, Fecha)
order by Empleado, datepart(year, Fecha)
Ya luego tienes que tratar de hacer un Pivot con esos resultados.
Slds |