Mysql
 sql >> Database >  >> RDS >> Mysql

come ottenere risultati in base a un intervallo di 10 minuti in mysql

select destination , count(id) from your_table
where MINUTE(time)>= MINUTE(now())-10 and MINUTE(time)< minute(now()) 
group by destination 
LIMIT 10