Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/01/2020, 12:20
Avatar de ArturoGallegos
ArturoGallegos
Moderador
 
Fecha de Ingreso: febrero-2008
Ubicación: Morelia, México
Mensajes: 6.774
Antigüedad: 16 años, 1 mes
Puntos: 1146
Respuesta: Valor de ventas por mes

Solo cambia el where en lugar de buscar una fecha concreta busca un rango de fechas


where fecha >= xxxxxx and fecha <= yyyyyyy


igual podria ser


where month(fecha) = xx. and year(fecha) = yyyy



el resto queda igual