Ver Mensaje Individual
  #4 (permalink)  
Antiguo 28/05/2012, 10:40
Avatar de ingelenalopez
ingelenalopez
 
Fecha de Ingreso: mayo-2012
Ubicación: Santo Domingo, Dominican Republic
Mensajes: 12
Antigüedad: 12 años
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