#!/usr/bin/bash
#PROGRAMA QUE VE SANIDAD
mysql dustbuster -e "select DATE(horaingreso) as Datetime,ROUND(AVG(pm10)) as 'Promedio_PM100',COUNT(pm10) as 'Cantidad_DATOS',ROUND(AVG(velocidadpromedio)) as 'Promedio_VEL' from evento_mapa where horaingreso GROUP BY DATE(horaingreso) order by id desc limit 7"